aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxkbcommon/APKBUILD
blob: db6ef2d8eca5d7e1bcc283b1c90a4a68cd026d6a (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
44
45
46
47
48
49
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libxkbcommon
pkgver=0.10.0
pkgrel=1
pkgdesc="a keyboard handling library"
url="https://www.xkbcommon.org/"
arch="all"
license="MIT"
depends_dev="libxkbcommon-x11=$pkgver-r$pkgrel"
makedepends="
	bison
	wayland-dev
	wayland-protocols
	libxcb-dev
	xkeyboard-config
	meson"
checkdepends="bash"
subpackages="$pkgname-static $pkgname-dev $pkgname-x11"
source="$pkgname-$pkgver.tar.gz::https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-$pkgver.tar.gz"
builddir="$srcdir/libxkbcommon-xkbcommon-$pkgver"

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		-Denable-wayland=true \
		-Denable-docs=false \
		-Denable-x11=true \
		-Ddefault_library=both \
		build
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

x11() {
	pkgdesc="$pkgdesc (x11 support)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*x11*.so.* "$subpkgdir"/usr/lib
}

sha512sums="682a08124491ba9115011b145836ffac26932acdd804a76f7fb076b6f12b8a1ad23480e6272cb5c374cde7fb6c32ce2bb431b8b3e15316f132f236367ca1a964  libxkbcommon-0.10.0.tar.gz"