1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/usbguard-notifier/APKBUILD
Michał Polański 42d4fc29ed testing/usbguard-notifier: disable on riscv64
blocked by librsvg
2021-07-10 00:45:34 +02:00

48 lines
1.2 KiB
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=usbguard-notifier
pkgver=0.0.6
pkgrel=0
pkgdesc="Notifies on USBGuard policy and device presence changes"
url="https://github.com/Cropi/usbguard-notifier"
license="GPL-2.0-or-later"
arch="all !s390x !mips !mips64 !riscv64" # blocked by librsvg
makedepends="
autoconf
automake
libtool
usbguard-dev
librsvg-dev
libnotify-dev
catch2
asciidoc
"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Cropi/usbguard-notifier/archive/usbguard-notifier-$pkgver.tar.gz
no-systemd.patch"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
prepare() {
default_prepare
sed -i "s#/usr/include/catch#/usr/include/catch2#g" configure.ac
autoreconf -fiv
}
check() {
make check
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
}
package() {
make install DESTDIR="$pkgdir"
}
sha512sums="521b1cba292a5a1663bb36aad07d73ab1fae729da0a56794b34261c1b848366bac3637018c1cd371332f9d42bc73d5ba3c3b1ae0584cbc5bd9af1bb16a3a0599 usbguard-notifier-0.0.6.tar.gz
09ca4890884d0a62d1b152c6cc5120c9856f46b778cba6f3d36a831ad6f0e5e6651e4e5532e8cefbc55583b862af4c649e6299591fed66b4c9187f7e4f363f85 no-systemd.patch"