1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Ian Beringer <ian@ianberinger.com>
7 pkgdesc='Software framework for implementing USB device authorization policies'
8 url='https://github.com/USBGuard/usbguard'
11 depends=('glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib'
12 'audit' 'libaudit.so' 'libseccomp' 'libseccomp.so' 'libcap-ng.so' 'libgio-2.0.so'
13 'libglib-2.0.so' 'libprotobuf.so')
14 makedepends=('catch2' 'pegtl' 'libxslt' 'libxml2' 'asciidoc' 'systemd')
15 provides=('libusbguard.so')
16 backup=(etc/usbguard/usbguard-daemon.conf
17 etc/usbguard/rules.conf)
18 source=(https://github.com/USBGuard/usbguard/releases/download/usbguard-${pkgver}/usbguard-${pkgver}.tar.gz{,.asc})
19 sha512sums=('03b6dd026a0fe6a7a055208f09a56e2cc86985570388e33fde08671b8aa2d60ea4a0e59505e9646ddf50f42f5b6310d1b230379f9c26ec99c7ca736f3b4ad850'
22 'DE78B93EAED8A620F5AA14DF52F7E84653274B59' # Radovan Sroka <rsroka@redhat.com>
26 cd ${pkgname}-${pkgver}
31 cd ${pkgname}-${pkgver}
35 --localstatedir=/var \
40 --without-bundled-catch \
41 --without-bundled-pegtl \
44 --with-crypto-library=sodium
50 cd ${pkgname}-${pkgver}
55 cd ${pkgname}-${pkgver}
56 make INSTALL='install -p' DESTDIR="${pkgdir}" install
58 chmod 750 "${pkgdir}/etc/usbguard"
59 install -Dpm 600 usbguard-daemon.conf rules.conf -t "${pkgdir}/etc/usbguard"
61 install -Dpm 644 scripts/bash_completion/usbguard -t "${pkgdir}/usr/share/bash-completion/completions"
62 install -Dpm 644 scripts/usbguard-zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_usbguard"
64 install -Dm 644 CHANGELOG.md README.adoc -t "${pkgdir}/usr/share/doc/${pkgname}"