summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGI_Jack2020-05-15 15:57:24 -0400
committerGI_Jack2020-05-15 15:57:24 -0400
commit610dffcee451732bf1f97ee276908b1a2d9587bb (patch)
treeee0aa4289e7e0bc9f2dbe900329130fc5d1aab92
downloadaur-usbctl-ng.tar.gz
initial release
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD39
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d28ef3ffc57
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = usbctl-ng
+ pkgdesc = Linux-hardened deny_new_usb control(forked version)
+ pkgver = 2.0
+ pkgrel = 1
+ url = https://github.com/GIJack/usbctl
+ arch = any
+ license = GPLv3
+ depends = linux-hardened
+ depends = bash
+ depends = usbutils
+ depends = coreutils
+ depends = diffutils
+ depends = procps-ng
+ depends = grep
+ depends = util-linux
+ optdepends = sudo: elevate to root when needed
+ provides = usbctl
+ conflicts = usbctl
+ source = usbctl-2.0.tar.gz::https://github.com/GIJack/usbctl/archive/2.0/2.0.tar.gz
+ source = https://github.com/GIJack/usbctl/releases/download/2.0/usbctl-2.0.tar.gz.sig
+ validpgpkeys = C974DBDCC20BE7CFD7267D8D5B5BABADF217B040
+ sha512sums = 6f4435521ce52aca0aacb3a9d18c5286a8aac80d99987a1bcdc725ef225a48d1e26c9b5918a5dfc4608aa1160f360d62b4879da3e4e7ccc425ecfb86674f565f
+ sha512sums = SKIP
+ b2sums = d9a6d4322c418a7d16a30b83b82451674ad8bc422c6c667466e054d3bc5b1b0cef87a2d2f7626a93987f2fc9086ba2a5ecffd4d59a63e3d1ad172ba1e1653529
+ b2sums = SKIP
+
+pkgname = usbctl-ng
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6750586569e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: GI Jack <GI_Jack@Hackermail.com>
+# Upstream: Levente Polyak <anthraxx[at]archlinux[dot]org>
+#
+# Replacement for usbctl with some extra features, and cleanup
+
+pkgname=usbctl-ng
+_pkgname=usbctl
+pkgver=2.0
+pkgrel=1
+pkgdesc='Linux-hardened deny_new_usb control(forked version)'
+url='https://github.com/GIJack/usbctl'
+arch=('any')
+license=('GPLv3')
+depends=('linux-hardened' 'bash' 'usbutils' 'coreutils' 'diffutils' 'procps-ng' 'grep' 'util-linux')
+#checkdepends=('shellcheck')
+optdepends=('sudo: elevate to root when needed')
+conflicts=("${_pkgname}")
+provides=("${_pkgname}")
+source=(${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}/${pkgver}.tar.gz
+ ${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz.sig)
+sha512sums=('6f4435521ce52aca0aacb3a9d18c5286a8aac80d99987a1bcdc725ef225a48d1e26c9b5918a5dfc4608aa1160f360d62b4879da3e4e7ccc425ecfb86674f565f'
+ 'SKIP')
+b2sums=('d9a6d4322c418a7d16a30b83b82451674ad8bc422c6c667466e054d3bc5b1b0cef87a2d2f7626a93987f2fc9086ba2a5ecffd4d59a63e3d1ad172ba1e1653529'
+ 'SKIP')
+validpgpkeys=('C974DBDCC20BE7CFD7267D8D5B5BABADF217B040') # GI_Jack
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ #make test
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" MANDIR=/share/man/man1 install
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
+}
+
+# vim:set ts=2 sw=2 et:
+