2021-01-28 13:25:54 +00:00
|
|
|
pkgname=libudev-zero
|
|
|
|
pkgver=0.4.7
|
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl -L "https://github.com/illiliti/libudev-zero/archive/0.4.7.tar.gz" -o $pkgname-$pkgver.tar.xz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.xz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make
|
2021-06-24 21:12:22 +00:00
|
|
|
cd contrib
|
|
|
|
cc helper.c -o libudev-zero-hotplug-helper
|
2021-01-28 13:25:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install PREFIX=/usr DESTDIR=$pkgdir
|
2021-06-24 21:12:22 +00:00
|
|
|
install -d $pkgdir/usr/sbin
|
|
|
|
install -Dm755 ./contrib/libudev-zero-hotplug-helper $pkgdir/usr/sbin/
|
2021-01-28 13:25:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|