summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: f1d0b34d4c784a555e217ad609be13561bda604c (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=1
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=(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=('26395f6723787998c71f296cd6f14ce4f7215957ec6cf8ca732e03ebf0b66c67ad60862c8b5970e2ac69a8a00c957d98712f182bba5893058b37f748d970753b'
            'SKIP'
            '3d40a6d8e806f9883df648fd6cea7881af0e12b185211b81e2390197c71ab492b9806beb154832af9f757b4393dfae0ec3fed9377a5f42f4cb08f380d3d45653')
#            '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}"
}