summaryrefslogtreecommitdiff
path: root/user/libgudev/APKBUILD
blob: 56130524aac8285c24b33c3bf5d657dd718f3392 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"
options="!check"  # Tests require umockdev.
license="LGPL-2.0+"
depends=""
makedepends="eudev-dev glib-dev gobject-introspection-dev"
[ -n "$BOOTSTRAP" ] || checkdepends="$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 \
		--disable-umockdev
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="f648a41e2a6af7e26634c7cc259fdc47bb6e6ffb329324d157f340e42928e28c2059a0e923b9b0aaecd1ee3ecafbc7b55e5652f1f77bc1b88367b97057a1bedc  libgudev-232.tar.xz"