[arch-commits] Commit in usbctl/repos/extra-any (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Thu Jan 24 01:43:03 UTC 2019
Date: Thursday, January 24, 2019 @ 01:43:03
Author: anthraxx
Revision: 344643
archrelease: copy trunk to extra-any
Added:
usbctl/repos/extra-any/PKGBUILD
(from rev 344642, usbctl/trunk/PKGBUILD)
Deleted:
usbctl/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 58 +++++++++++++++++++++++++++++++---------------------------
1 file changed, 31 insertions(+), 27 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-24 01:42:57 UTC (rev 344642)
+++ PKGBUILD 2019-01-24 01:43:03 UTC (rev 344643)
@@ -1,27 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: kpcyrd <git at rxv.cc>
-
-pkgname=usbctl
-pkgver=1.0
-pkgrel=1
-pkgdesc='Linux-hardened deny_new_usb control'
-url='https://github.com/anthraxx/usbctl'
-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'
- 'SKIP')
-validpgpkeys=('E240B57E2C4630BA768E2F26FC1B547C8D8172C8') # Levente Polyak
-
-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"
- install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: usbctl/repos/extra-any/PKGBUILD (from rev 344642, usbctl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-01-24 01:43:03 UTC (rev 344643)
@@ -0,0 +1,31 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: kpcyrd <git at rxv.cc>
+
+pkgname=usbctl
+pkgver=1.1
+pkgrel=1
+pkgdesc='Linux-hardened deny_new_usb control'
+url='https://github.com/anthraxx/usbctl'
+arch=('any')
+license=('MIT')
+depends=('linux-hardened' 'bash' 'usbutils' 'coreutils' 'diffutils' 'procps-ng' 'grep' 'util-linux')
+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}
+ 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:
More information about the arch-commits
mailing list