summaryrefslogtreecommitdiff
path: root/user/libgudev/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libgudev/APKBUILD')
-rw-r--r--user/libgudev/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/libgudev/APKBUILD b/user/libgudev/APKBUILD
new file mode 100644
index 000000000..b49e5db4b
--- /dev/null
+++ b/user/libgudev/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libgudev
+pkgver=232
+pkgrel=0
+pkgdesc="GObject-based wrapper library for libudev"
+url="https://wiki.gnome.org/Projects/libgudev"
+arch="all"
+[ -z "$BOOTSTRAP" ] || options="!check" # Tests require umockdev.
+license="LGPL-2.0+"
+depends=""
+makedepends="eudev-dev glib-dev gobject-introspection-dev"
+[ -n "$BOOTSTRAP" ] || makedepends="$makedepends umockdev-dev"
+subpackages="$pkgname-dev"
+source="https://download.gnome.org/sources/libgudev/$pkgver/libgudev-$pkgver.tar.xz"
+
+build() {
+ cd "$builddir"
+
+ local myconf=""
+ [ -z "$BOOTSTRAP" ] || myconf="--disable-umockdev"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ $myconf
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="f648a41e2a6af7e26634c7cc259fdc47bb6e6ffb329324d157f340e42928e28c2059a0e923b9b0aaecd1ee3ecafbc7b55e5652f1f77bc1b88367b97057a1bedc libgudev-232.tar.xz"