summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70713100572ade07e6f95f23c44097e749eb5e5a (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
pkgname=shellter
pkgver=7.2
pkgrel=1

pkgdesc='Dynamic shellcode injection tool'
url='https://www.shellterproject.com'
arch=('any')
license=('custom')
depends=('wine')

source=(${pkgname}::git+https://github.com/ParrotSec/shellter)
sha512sums=('SKIP')

package() {
    install -D -t "$pkgdir/opt/shellter" "$pkgname/shellter.exe"
	mkdir -p $pkgdir/usr/share/licences/shellter/
	mkdir -p $pkgdir/usr/share/docs/shellter
	mkdir -p $pkgdir/usr/bin
	cp -r $pkgname/debian $pkgname/shellcode_samples $pkgname/docs $pkgdir/usr/share/docs/shellter
	cp -r $pkgname/licenses $pkgdir/usr/share/licences/shellter
	cat > "${pkgdir}/usr/bin/${pkgname}" << EOF
#!/bin/sh
wine /opt/shellter/shellter.exe
EOF
	chmod 755 "${pkgdir}/usr/bin/${pkgname}"
}