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=('7810471a3778b4bca644565cefa2666f98d53c2747bff7262b9bbb0327e7dba7a1e8c067c96d89e6742ccec5f65410f4e273bf84ee2bb1fbc7ff5738df3af780'
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}"