aboutsummaryrefslogtreecommitdiffstats
path: root/main/eudev
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-07-16 14:22:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-17 07:57:29 +0000
commit3bc33b297bb4430a52c7632757b8dc73c1eb26ca (patch)
treefa09d265ed9098de801823529487c493a91564d6 /main/eudev
parentf22918f24104fc43b56b31f3b051dfe4b14e22f4 (diff)
downloadaports-3bc33b297bb4430a52c7632757b8dc73c1eb26ca.tar.bz2
aports-3bc33b297bb4430a52c7632757b8dc73c1eb26ca.tar.xz
main/eudev (and deps): move from testing
Diffstat (limited to 'main/eudev')
-rw-r--r--main/eudev/APKBUILD83
1 files changed, 83 insertions, 0 deletions
diff --git a/main/eudev/APKBUILD b/main/eudev/APKBUILD
new file mode 100644
index 0000000000..92036a7ab1
--- /dev/null
+++ b/main/eudev/APKBUILD
@@ -0,0 +1,83 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=eudev
+pkgver=3.1.2
+pkgrel=0
+pkgdesc="OpenRC compatible fork of systemd-udev"
+url="https://wiki.gentoo.org/wiki/Project:Eudev"
+arch="all"
+license="GPLv2"
+depends="udev-init-scripts"
+depends_dev=""
+makedepends="$depends_dev gperf glib-dev linux-headers
+ gobject-introspection-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libgudev $pkgname-libs"
+source="http://dev.gentoo.org/~blueness/eudev/eudev-$pkgver.tar.gz"
+
+_builddir="$srcdir"/eudev-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ # we need disable kmod til busybox depmod generates binary formats:
+ # modules.dep.bin modules.alias.bin modules.symbols.bin
+ # modules.builtin.bin
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --sysconfdir=/etc \
+ --with-rootprefix= \
+ --with-rootrundir=/run \
+ --with-rootlibexecdir=/lib/udev \
+ --libdir=/usr/lib \
+ --enable-split-usr \
+ --enable-manpages \
+ --disable-hwdb \
+ --disable-kmod \
+ --exec-prefix=/ \
+ --enable-gudev \
+ --enable-introspection \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" sharepkgconfigdir=/usr/lib/pkgconfig \
+ install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+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
+ mv $i "$subpkgdir"/lib || return 1
+ ln -s ../../lib/${i##*/} "$pkgdir"/usr/lib/${i##*/} || return 1
+ done
+}
+
+libgudev() {
+ pkgdesc="A GObject wrapper of the library gudev"
+ replaces="libgudev"
+ depends=""
+ mkdir -p "$subpkgdir"/usr/lib || return 1
+ mv "$pkgdir"/usr/lib/libgudev* "$subpkgdir"/usr/lib/ || return 1
+ mv "$pkgdir"/usr/lib/girepository-* \
+ "$subpkgdir"/usr/lib/
+}
+
+
+md5sums="07ab33fe310d250f06fc28f010e3fde2 eudev-3.1.2.tar.gz"
+sha256sums="4393b69e93dd8117defde6519b199d479f9d051f52061157a1a7a41b8fe10273 eudev-3.1.2.tar.gz"
+sha512sums="d9aeb37a163ce4a0c116f75a927b4b99f8445d06624fbb3c28ade18f3effd8c54af5a4a52477c31a0452822a3dc0901468263195256e9dbf79d2ef08cf46f2b6 eudev-3.1.2.tar.gz"