aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgudev/APKBUILD
blob: 50ea9c23e904f7e2abeebe63c52b0529a4df5d76 (plain)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libgudev
pkgver=236
pkgrel=0
pkgdesc="GObject-based wrapper library for libudev"
url="https://wiki.gnome.org/Projects/libgudev"
arch="all"
license="LGPL-2.0-or-later"
makedepends="meson glib-dev gobject-introspection-dev eudev-dev vala"
subpackages="$pkgname-dev $pkgname-dbg"
source="https://download.gnome.org/sources/libgudev/$pkgver/libgudev-$pkgver.tar.xz"

build() {
	# Tests require testing/umockdev
	abuild-meson \
		-Dtests=disabled \
		-Dintrospection=enabled \
		-Dvapi=enabled \
		-Dgtk_doc=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="b00c30a7d57de8cca92a22f4c4da878c7cce448b1177858cc9ee0b99c5bc4fd0fbd01d8f4f9a9b9ef073af8f51c26533f2e7896c01ed9fed0a2bcfa6b2cfcbc2  libgudev-236.tar.xz"