iglunix/gui/libudev-zero/build.sh

31 lines
528 B
Bash
Raw Normal View History

2021-01-28 13:25:54 +00:00
pkgname=libudev-zero
2021-12-26 12:40:14 +00:00
pkgver=1.0.0
2021-01-28 13:25:54 +00:00
fetch() {
2021-09-11 08:24:20 +00:00
curl -L "https://github.com/illiliti/libudev-zero/archive/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
2021-01-28 13:25:54 +00:00
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-12-26 12:40:14 +00:00
}
backup() {
return
2021-01-28 13:25:54 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}