diff options
author | kpcyrd <git@rxv.cc> | 2018-04-28 02:47:07 +0200 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-08 09:19:09 +0000 |
commit | 464ca29ae8c09d904947d36e46bd5698ea4c9e68 (patch) | |
tree | 0552eece37e7705f30596d7b013c8f8b7b2b244c | |
parent | 86f87cfa21054ca34d48362b3f9ab919ebd09de4 (diff) | |
download | aports-464ca29ae8c09d904947d36e46bd5698ea4c9e68.tar.bz2 aports-464ca29ae8c09d904947d36e46bd5698ea4c9e68.tar.xz |
testing/badtouch: new aport
-rw-r--r-- | testing/badtouch/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/badtouch/APKBUILD b/testing/badtouch/APKBUILD new file mode 100644 index 0000000000..eb0eca4f9b --- /dev/null +++ b/testing/badtouch/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: kpcyrd <git@rxv.cc> +# Maintainer: kpcyrd <git@rxv.cc> +pkgname=badtouch +pkgver=0.5.1 +pkgrel=0 +pkgdesc="Scriptable network authentication cracker" +url="https://github.com/kpcyrd/badtouch" +arch="all" +license="GPL-3.0" +depends="ca-certificates" +makedepends="cargo libcap libressl-dev" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + cargo build --release --verbose +} + +check() { + cd "$builddir" + cargo test --release --verbose +} + +package() { + cd "$builddir" + install -Dm755 target/release/badtouch "$pkgdir/usr/bin/badtouch" + setcap cap_sys_resource=+ep "$pkgdir/usr/bin/badtouch" + + install -Dm644 docs/badtouch.1 "$pkgdir/usr/share/man/man1/badtouch.1" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +sha512sums="743be329260cefa251f32002a1015b10b9815a3ee91e3baad0b94f948f8b528ca3c564b7f48b0b6088dbbea9c7e0e595541031e2a774381b1dbdab6c5e149d17 badtouch-0.5.1.tar.gz" |