APKBUILD 957 Bytes
Newer Older
Lucas Ramage's avatar
Lucas Ramage committed
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
# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=usbguard
pkgver=0.7.6
pkgrel=0
pkgdesc="A USB device whitelisting tool"
url="https://usbguard.github.io"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf automake asciidoctor libtool libqb-dev libsodium-dev protobuf-dev"
options="!check"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/USBGuard/usbguard/archive/usbguard-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

prepare() {
	./autogen.sh
}

build() {
	qb_CFLAGS=-lqb qb_LIBS=/usr/include/qb/ ./configure \
		--prefix=/usr \
		--with-bundled-catch \
		--with-bundled-pegtl \
		--without-dbus \
		--without-polkit
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="11f17b619a8c3610f0e0037288a3bec2b5ecec7276a16c78f578dec5095fa17c0cf4c58db67fa8f9797034cdf6de41c9170ecd1010b66755d94481e7d26e7edb  usbguard-0.7.6.tar.gz"