iglunix/gui/libudev-zero/build.sh
2021-08-03 22:17:36 +00:00

26 lines
504 B
Bash

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
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/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}