blob: 11d4461b03fa88c0a9fde021a3ed07c1fe1bc360 (
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
|
# Maintainer: kpcyrd <git@rxv.cc>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
_gitname=usbctl
pkgname=usbctl-git
pkgver=1.1.r2.gf911f27
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')
makedepends=('git')
checkdepends=('shellcheck')
optdepends=('sudo: elevate to root when needed')
provides=('usbctl')
conflicts=('usbctl')
source=(git+https://github.com/anthraxx/$_gitname.git)
sha512sums=('SKIP')
pkgver() {
cd $_gitname
git describe --always --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
check() {
cd $_gitname
make test
}
package() {
cd $_gitname
make DESTDIR="${pkgdir}" install
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim:set ts=2 sw=2 et:
|