summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-22 13:20:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-23 11:42:08 +0000
commit62b76d8d6546412e8dcb504a6c38ecb481f29874 (patch)
treeb8af05882eec67b85532895f00be2398609e4e4c /testing
parentec2234c687d7e75e193681dbae693e502ed37c65 (diff)
downloadaports-62b76d8d6546412e8dcb504a6c38ecb481f29874.tar.bz2
aports-62b76d8d6546412e8dcb504a6c38ecb481f29874.tar.xz
testing/udev: upgrade to 161
Diffstat (limited to 'testing')
-rw-r--r--testing/udev/APKBUILD36
1 files changed, 30 insertions, 6 deletions
diff --git a/testing/udev/APKBUILD b/testing/udev/APKBUILD
index 0d55e6fd6..76fbb0276 100644
--- a/testing/udev/APKBUILD
+++ b/testing/udev/APKBUILD
@@ -1,13 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udev
-pkgver=142
-pkgrel=1
+pkgver=161
+pkgrel=0
pkgdesc="The userspace dev tools (udev)"
url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
license="GPL"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-dev $pkgname-doc libgudev"
depends=
-makedepends=""
+makedepends="gobject-introspection glib-dev gperf acl-dev libusb-compat-dev
+ usbutils pciutils-dev libtool"
install=
source="http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgname-$pkgver.tar.bz2
write_root_link_rule
@@ -21,10 +22,26 @@ build ()
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
+ --libexecdir=/lib/udev \
--exec-prefix="" \
- --with-libdir-name=/lib
+ || return 1
make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
make DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/usr/lib/pkgconfig
+ mv "$pkgdir"/usr/share/pkgconfig/* \
+ "$pkgdir"/lib/pkgconfig/* \
+ "$pkgdir"/usr/lib/pkgconfig/ \
+ && rmdir "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/share/pkgconfig \
+ || return 1
+ mv "$pkgdir"/lib/*.la \
+ "$pkgdir"/lib/girepository* \
+ "$pkgdir"/usr/lib/ || return 1
+
chmod +x "$pkgdir"/lib/udev/write_*_rules
for _i in write_root_link_rule move_tmp_persistent_rules.sh; do
install -Dm755 ../$_i "$pkgdir"/lib/udev/$_i
@@ -33,7 +50,14 @@ build ()
install -Dm755 ../$_i.initd "$pkgdir"/etc/init.d/$_i
done
}
-md5sums="3edc4cf383dccb06d866c5156d59ddd5 udev-142.tar.bz2
+
+libgudev() {
+ pkgdesc="A GObject wrapper of the library gudev"
+ mkdir -p "$subpkgdir"/lib
+ mv "$pkgdir"/lib/libgudev* "$subpkgdir"/lib/
+}
+
+md5sums="95b6a0ffc9913f3e8021c65f51eb4f88 udev-161.tar.bz2
c9de7581099cdfdcd105666cd98a0f0a write_root_link_rule
7bf11e11519117f743483c73e0767750 move_tmp_persistent_rules.sh
12760065a66ccbddc9e3a86a6cd2231c udev-mount.initd