summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdf2b08deec2ca1cb2c3ed3fa232eb3d70f05f23 (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.2.2
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=('86c6b6d88abeb92f303608fd3c5d7570796e0450434e20f738dd143d9a5246be')

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"
}