summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f1ab0aa65b3d0e13702238dbfbda08095250a99 (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: Mehdi Bounya <mehdi.bounya@gmail.com>
pkgname="linset"
pkgver=0.1
pkgrel=1
pkgdesc="Evil Twin Attack Bash script"
arch=("x86_64")
url="https://github.com/vk496/linset"
license=("GPL-3.0")
depends=("aircrack-ng" "curl" "dhcp" "hostapd" "wireless_tools" "lighttpd" "macchanger" "mdk3" "php-cgi" "pyrit" "python" "unzip" "xterm")
source=(${pkgname}::git+https://github.com/vk496/linset)

package() {
	cd ${pkgname}
	install -d "${pkgdir}/opt/${pkgname}"
	cp -ra --no-preserve=owner . "${pkgdir}/opt/${pkgname}"
	chmod 755 "${pkgdir}/opt/${pkgname}/${pkgname}"
	rm -r "${pkgdir}/opt/${pkgname}/.git"
	install -d "${pkgdir}/usr/bin"
	cat > "${pkgdir}/usr/bin/${pkgname}" << EOF
#!/bin/sh
/opt/linset/linset
EOF
	chmod 755 "${pkgdir}/usr/bin/${pkgname}"
	install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
	install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
	return 0
}
md5sums=('SKIP')