aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2021-09-11 19:20:49 +0000
committerMilan P. Stanić <mps@arvanta.net>2021-09-13 07:00:25 +0000
commit21378eee6b6aaaa3823a0a0efabd5cf349b7cc60 (patch)
treeb9aa7374abbf5904aa6ca1d50be530e7983edab7
parent86ce0b316696911797b7aa43590108cfc04f3a47 (diff)
downloadaports-21378eee6b6aaaa3823a0a0efabd5cf349b7cc60.tar.gz
aports-21378eee6b6aaaa3823a0a0efabd5cf349b7cc60.tar.bz2
aports-21378eee6b6aaaa3823a0a0efabd5cf349b7cc60.tar.xz
community/libudev-zero: add libudev-zero-helper subpackage
build helper.c and put it in libudev-zero-helper subpackage
-rw-r--r--community/libudev-zero/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/community/libudev-zero/APKBUILD b/community/libudev-zero/APKBUILD
index e575740aaa..06d4f3a400 100644
--- a/community/libudev-zero/APKBUILD
+++ b/community/libudev-zero/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=libudev-zero
pkgver=1.0.0
-pkgrel=0
+pkgrel=1
pkgdesc="libudev replacement to use whatever device manager"
url="https://github.com/illiliti/libudev-zero/"
arch="all"
@@ -12,17 +12,24 @@ makedepends="linux-headers"
provides="udev"
replaces="udev"
provider_priority=20
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-helper"
source="$pkgname-$pkgver.tar.gz::https://github.com/illiliti/libudev-zero/archive/$pkgver.tar.gz"
build() {
make PREFIX=/usr
+ cc -o libudev-zero-helper contrib/helper.c
}
package() {
make DESTDIR=$pkgdir PREFIX=/usr install
rm -f $pkgdir/usr/lib/libudev.a
}
+helper() {
+ pkgname="libudev-zero hotplugging helper"
+ depends=""
+ install -Dm755 $builddir/libudev-zero-helper \
+ "$subpkgdir"/usr/libexec/libudev-zero-helper
+}
sha512sums="
1e1b56be0250b411ec094d233bd30447115e257e5acd21e3c808daab1b4395f9293d9461c7c89f7c012e5da657bba5e46f6e7eca541ffcc56eab32205dcd5a9f libudev-zero-1.0.0.tar.gz