summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 12f96506e1fc426786d81383aa0ee6d08929327c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer (Arch): kpcyrd <git@rxv.cc>

# # I maintain this because:
# Arch version does not conflict against usbctl-libre

pkgname=usbctl
pkgver=1.2
pkgrel=2
pkgdesc='Linux-hardened deny_new_usb control'
url='https://github.com/anthraxx/usbctl'
arch=('any')
license=('MIT')
install=${pkgname}.install
depends=('linux-hardened' 'bash' 'usbutils' 'coreutils' 'diffutils' 'procps-ng' 'grep' 'util-linux')
#checkdepends=('shellcheck')
optdepends=('sudo: elevate to root when needed')
conflicts=('usbctl-libre')
source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
        ${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig
        ${pkgname}.install)
#        10-${pkgname}.conf)
b2sums=('4b9c5fb37de2ac363757d9dbd109f4dc7adc159853049def4f5f8bb1d58ef6bc2fa67a206988e5aaccc6a57a74798fb6cf368d766b93cc7d0e8d9df2425c11e2'
        'SKIP'
        'b47259e44c6c2e66bf9d7b04311a59f0a8af1937cc66909ec400022a8f9171619d4b01979a4157a4ffc2fbafd240d9a460b1961d760622b94c51e66b6b43c387')
#            'e36a3d97daef70992c84efb633904055d94ac0bb74fc355c01defec74a63c27f097b66e19849c207b1428f353f530978e5d43c31c3d5b47bd976c2c868ac8245')
validpgpkeys=('E240B57E2C4630BA768E2F26FC1B547C8D8172C8') # Levente Polyak

#check() {
#  cd {srcdir}/${_pkgname}-${pkgver}
#  make test
#}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" MANDIR=/share/man/man1 install
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}