summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d03d8fb5e342c4bb4dee578db96aad6df5e2f70 (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
# Maintainer: GI_Jack <GI_Jack@hackermail.com>
pkgname=getsploit
pkgver=0.3.0
pkgrel=1
pkgdesc="Command line utility for searching and downloading exploits"
arch=('any')
url="https://github.com/vulnersCom/getsploit"
license=('GPL')
depends=('python' 'python-urllib3')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/vulnersCom/getsploit/archive/${pkgver}.tar.gz")
sha256sums=('9e2cca546669632d67627f43650e148e12bde00d31455633f7c2728607a73868')

build() {
  cd "${pkgname}-${pkgver}"
  cat > getsploit.sh << EOF
cd /usr/share/getsploit
./getsploit.py "\${@}"
EOF
  cd ${pkgname}
  python -m compileall *
}

package() {
  cd "${pkgname}-${pkgver}"
  mkdir -p "${pkgdir}/usr/share/"
  cp -r getsploit "${pkgdir}/usr/share/"
  install -Dm 755 getsploit.sh "${pkgdir}/usr/bin/getsploit"
}