diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-30 14:38:01 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-30 14:38:01 +0100 |
commit | d1d04f75641161a651edc0f67241c3817f6c51cb (patch) | |
tree | 0322b1bea4e8480ec86271f4629c628cc812c6ed /main/eudev | |
parent | edfeb55d42dc2197f90a5154b4ef2e92b8265a72 (diff) | |
download | aports-d1d04f75641161a651edc0f67241c3817f6c51cb.tar.bz2 aports-d1d04f75641161a651edc0f67241c3817f6c51cb.tar.xz |
main/eudev: improve abuild
Diffstat (limited to 'main/eudev')
-rw-r--r-- | main/eudev/APKBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/eudev/APKBUILD b/main/eudev/APKBUILD index 8126dbc5be..46c579ab7c 100644 --- a/main/eudev/APKBUILD +++ b/main/eudev/APKBUILD @@ -12,15 +12,14 @@ depends_dev="" replaces="udev" makedepends="$depends_dev gperf glib-dev linux-headers kmod-dev gobject-introspection-dev util-linux-dev" -install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-netifnames" source="http://dev.gentoo.org/~blueness/$pkgname/$pkgname-$pkgver.tar.gz default-rules.patch udev-postmount.initd setup-udev " +builddir="$srcdir/$pkgname-$pkgver" -builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" # we need disable kmod til busybox depmod generates binary formats: @@ -45,6 +44,7 @@ build() { package() { cd "$builddir" + make DESTDIR="$pkgdir" sharepkgconfigdir=/usr/lib/pkgconfig \ install || return 1 @@ -63,8 +63,9 @@ libs() { pkgdesc="Dynamic library to access udev device information" replaces="libudev" depends="" + mkdir -p "$subpkgdir"/lib - for i in "$pkgdir"/usr/lib/libudev.so.*; do + local i; for i in "$pkgdir"/usr/lib/libudev.so.*; do mv $i "$subpkgdir"/lib || return 1 ln -s ../../lib/${i##*/} "$pkgdir"/usr/lib/${i##*/} || return 1 done @@ -72,6 +73,7 @@ libs() { netifnames() { pkgdesc="udev rules for systemd-style interface names" + mkdir -p "$subpkgdir"/lib/udev/rules.d mv "$pkgdir"/lib/udev/rules.d/80-net-name-slot.rules \ "$subpkgdir"/lib/udev/rules.d/ |