void-packages/srcpkgs/usbguard/template

34 lines
1.1 KiB
Bash

# Template file for 'usbguard'
pkgname=usbguard
version=1.0.0
revision=8
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"
distfiles="https://github.com/USBGuard/usbguard/releases/download/usbguard-$version/usbguard-$version.tar.gz"
checksum=5617986cd5dd1a2d311041648a1977d836cf4e33a4121d7f82599f21496abc42
post_install() {
vsv usbguard
}
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
}
}