36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'usbguard'
|
|
pkgname=usbguard
|
|
version=1.1.2
|
|
revision=5
|
|
build_style=gnu-configure
|
|
configure_args="--with-crypto-library=sodium --with-bundled-catch --with-bundled-pegtl"
|
|
conf_files="/etc/usbguard/*"
|
|
make_dirs="
|
|
/var/log/usbguard 0755 root root
|
|
/etc/usbguard/IPCAccessControl.d 0755 root root"
|
|
hostmakedepends="automake libtool pkg-config asciidoc glib-devel protobuf"
|
|
makedepends="libqb-devel libsodium-devel protobuf-devel polkit-devel libcap-ng-devel libseccomp-devel"
|
|
short_desc="Tool for whitelisting and blacklisting USB devices"
|
|
maintainer="Philoponus Bindle <philoponus-bindle@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://usbguard.github.io"
|
|
changelog="https://raw.githubusercontent.com/USBGuard/usbguard/main/CHANGELOG.md"
|
|
distfiles="https://github.com/USBGuard/usbguard/releases/download/usbguard-$version/usbguard-$version.tar.gz"
|
|
checksum=dcf5c90f3f93030e04df1baeb8d388b678c40dd48b135ea12a7be7dee8944934
|
|
|
|
post_install() {
|
|
vsv usbguard
|
|
vcompletion scripts/usbguard-zsh-completion zsh
|
|
}
|
|
|
|
usbguard-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libqb-devel ${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|