summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-02-15 14:22:24 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-02-15 14:22:24 -0800
commit4bf000c3e3017d91e4ac5b12e77623b80bb79c88 (patch)
treeed70de2d295ff832d53aac1397778f106055e6c9
parentFixed build path (diff)
downloadusbctl-libre-4bf000c3e3017d91e4ac5b12e77623b80bb79c88.tar.xz
Updated to 1.2
-rw-r--r--PKGBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4beeece..f6b4de7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,37 +3,38 @@
# Maintainer (Arch): kpcyrd <git@rxv.cc>
# # I maintain this because:
-# Arch version requires zsh
-# Arch version requires systemd
# Arch version is not for linux-libre-hardened
pkgname=usbctl-libre
_pkgname=usbctl
-pkgver=1.0
-pkgrel=4
+pkgver=1.2
+pkgrel=1
pkgdesc='Linux-libre-hardened deny_new_usb control'
url='https://github.com/anthraxx/usbctl'
arch=('any')
license=('MIT')
install=${pkgname}.install
depends=('linux-libre-hardened' 'bash' 'usbutils' 'coreutils' 'diffutils' 'procps-ng' 'grep' 'util-linux')
-#optdepends=('zsh: zsh completion support')
+checkdepends=('shellcheck')
+optdepends=('sudo: elevate to root when needed')
conflicts=('usbctl')
-source=(${_pkgname}-${pkgver}.tar.gz::https://github.com/anthraxx/${_pkgname}/archive/${pkgver}/${pkgver}.tar.gz
- ${_pkgname}-${pkgver}.tar.gz.sig::https://github.com/anthraxx/usbctl/releases/download/${pkgver}/${pkgver}.tar.gz.sig
+source=(https://github.com/anthraxx/usbctl/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz
+ https://github.com/anthraxx/usbctl/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz.sig
${pkgname}.install)
# 10-${pkgname}.conf)
-sha512sums=('0f16297188439d10c1dcff6368ec830c4f665e05c01790383791cb207bda5667416c8f3b662173e6d7c5ffac2ef2b83593889b0e76a4a061129df5128bf2f4f6'
+sha512sums=('26395f6723787998c71f296cd6f14ce4f7215957ec6cf8ca732e03ebf0b66c67ad60862c8b5970e2ac69a8a00c957d98712f182bba5893058b37f748d970753b'
'SKIP'
'3d40a6d8e806f9883df648fd6cea7881af0e12b185211b81e2390197c71ab492b9806beb154832af9f757b4393dfae0ec3fed9377a5f42f4cb08f380d3d45653')
# 'e36a3d97daef70992c84efb633904055d94ac0bb74fc355c01defec74a63c27f097b66e19849c207b1428f353f530978e5d43c31c3d5b47bd976c2c868ac8245')
validpgpkeys=('E240B57E2C4630BA768E2F26FC1B547C8D8172C8') # Levente Polyak
+check() {
+ cd {srcdir}/${_pkgname}-${pkgver}
+ make test
+}
+
package() {
- cd ${srcdir}/usbctl-${pkgver}
- install -Dm 755 usbctl -t "${pkgdir}/usr/bin"
-# install -Dm 644 contrib/systemd/deny-new-usb.service -t "${pkgdir}/usr/lib/systemd/system"
- install -Dm 644 contrib/completion/bash/usbctl -t "${pkgdir}/usr/share/bash-completion/completions"
-# install -Dm 644 contrib/completion/zsh/_usbctl -t "${pkgdir}/usr/share/zsh/site-functions"
+ cd ${srcdir}/${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" MANDIR=/share/man/man1 install
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}