[arch-commits] Commit in badtouch/repos (3 files)

Levente Polyak anthraxx at archlinux.org
Thu May 10 15:28:50 UTC 2018


    Date: Thursday, May 10, 2018 @ 15:28:50
  Author: anthraxx
Revision: 320405

archrelease: copy trunk to community-x86_64

Added:
  badtouch/repos/community-x86_64/
  badtouch/repos/community-x86_64/PKGBUILD
    (from rev 320404, badtouch/trunk/PKGBUILD)
  badtouch/repos/community-x86_64/badtouch.install
    (from rev 320404, badtouch/trunk/badtouch.install)

------------------+
 PKGBUILD         |   37 +++++++++++++++++++++++++++++++++++++
 badtouch.install |    9 +++++++++
 2 files changed, 46 insertions(+)

Copied: badtouch/repos/community-x86_64/PKGBUILD (from rev 320404, badtouch/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-05-10 15:28:50 UTC (rev 320405)
@@ -0,0 +1,37 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: kpcyrd <git at rxv.cc>
+
+pkgname=badtouch
+pkgver=0.5.1
+pkgrel=3
+pkgdesc='Scriptable network authentication cracker'
+url='https://github.com/kpcyrd/badtouch'
+depends=('openssl' 'libcap')
+makedepends=('cargo')
+arch=('x86_64')
+license=('GPL3')
+install=badtouch.install
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/kpcyrd/${pkgname}/archive/v${pkgver}.tar.gz)
+sha256sums=('87a2350cadcd2b2ca1b130ba8a4878f32425f5fdcc01df4c38e6ee5263b8228d')
+sha512sums=('743be329260cefa251f32002a1015b10b9815a3ee91e3baad0b94f948f8b528ca3c564b7f48b0b6088dbbea9c7e0e595541031e2a774381b1dbdab6c5e149d17')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  cargo build --release --locked
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  cargo test --release --locked
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
+  install -Dm 644 docs/badtouch.1 -t "${pkgdir}/usr/share/man/man1"
+  install -Dm 644 scripts/* -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Copied: badtouch/repos/community-x86_64/badtouch.install (from rev 320404, badtouch/trunk/badtouch.install)
===================================================================
--- community-x86_64/badtouch.install	                        (rev 0)
+++ community-x86_64/badtouch.install	2018-05-10 15:28:50 UTC (rev 320405)
@@ -0,0 +1,9 @@
+# vim: ft=sh ts=4 et
+
+post_install() {
+    setcap cap_sys_resource=+ep /usr/bin/badtouch
+}
+
+post_upgrade() {
+    post_install
+}



More information about the arch-commits mailing list