blob: 5e10f9b1816fa04ccff5fa15e11d8530f7ad0177 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
pkgname=exploitdb-bin-sploits-git
pkgver=2022.11.22.r0.g23245b8
pkgrel=2
pkgdesc="Offensive Security's Exploit Database Archive"
arch=('any')
provides=('exploitdb-bin-sploits')
conflicts=('exploitdb-bin-sploits')
replaces=('exploitdb-bin-sploits')
url="https://www.exploit-db.com/"
license=('GPL')
makedepends=('git' 'sed' 'coreutils' 'findutils')
depends=('exploitdb')
options=('!strip')
source=("${pkgname%-git}::git+https://gitlab.com/exploit-database/${pkgname%-git}.git")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
printf "%s" "$(git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
}
package() {
# Placing files into package destination
cd "${srcdir}/${pkgname%-git}/"
find bin-sploits/ -type f -exec install -Dm644 {} "${pkgdir}/usr/share/${pkgname%-git}/{}" \;
# Installing license
install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
# vim: ts=4 sw=4 et:
|