iglunix/gui/libudev-zero/build.sh
2021-12-26 12:40:14 +00:00

30 lines
528 B
Bash

pkgname=libudev-zero
pkgver=1.0.0
fetch() {
curl -L "https://github.com/illiliti/libudev-zero/archive/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
make
cd contrib
cc helper.c -o libudev-zero-hotplug-helper
}
package() {
cd $pkgname-$pkgver
make install PREFIX=/usr DESTDIR=$pkgdir
install -d $pkgdir/usr/sbin
install -Dm755 ./contrib/libudev-zero-hotplug-helper $pkgdir/usr/sbin/
}
backup() {
return
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}