[arch-commits] Commit in usbctl/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Jan 24 01:42:58 UTC 2019


    Date: Thursday, January 24, 2019 @ 01:42:57
  Author: anthraxx
Revision: 344642

upgpkg: usbctl 1.1-1

Modified:
  usbctl/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-24 01:19:41 UTC (rev 344641)
+++ PKGBUILD	2019-01-24 01:42:57 UTC (rev 344642)
@@ -2,7 +2,7 @@
 # Maintainer: kpcyrd <git at rxv.cc>
 
 pkgname=usbctl
-pkgver=1.0
+pkgver=1.1
 pkgrel=1
 pkgdesc='Linux-hardened deny_new_usb control'
 url='https://github.com/anthraxx/usbctl'
@@ -9,18 +9,22 @@
 arch=('any')
 license=('MIT')
 depends=('linux-hardened' 'bash' 'usbutils' 'coreutils' 'diffutils' 'procps-ng' 'grep' 'util-linux')
-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)
-sha512sums=('0f16297188439d10c1dcff6368ec830c4f665e05c01790383791cb207bda5667416c8f3b662173e6d7c5ffac2ef2b83593889b0e76a4a061129df5128bf2f4f6'
+checkdepends=('shellcheck')
+optdepends=('sudo: elevate to root when needed')
+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)
+sha512sums=('11425f7fbe5ea5a4df5b15d886c933b30fe01975f00fcf77a607096fa4219a0be3e44a0fa6c1b88fb8f9531dbe45ce98a6b2f232bf8d6c4e8c04e4ce9e043fbf'
             'SKIP')
 validpgpkeys=('E240B57E2C4630BA768E2F26FC1B547C8D8172C8') # Levente Polyak
 
+check() {
+  cd ${pkgname}-${pkgver}
+  make test
+}
+
 package() {
   cd ${pkgname}-${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"
+  make DESTDIR="${pkgdir}" MANDIR=/share/man/man1 install
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 



More information about the arch-commits mailing list