aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxkbcommon/APKBUILD
blob: bbb86cc933c77513334b587bb493f967df869281 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libxkbcommon
pkgver=0.9.1
pkgrel=0
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="http://xkbcommon.org/download/libxkbcommon-$pkgver.tar.xz"


build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		-Denable-wayland=true \
		-Denable-docs=false \
		-Denable-x11=true \
		-Ddefault_library=both \
		build
	ninja -C build
}

check() {
	cd "$builddir"
	ninja -C build test
}

package() {
	cd "$builddir"
	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="8d4551a06e7dd4936633f544409401dc33f8f1900adb5daa6403615c71f321d17212db739f89a5b3e393d729b3f33167691404849a25d5526b403fd9ec3e8878  libxkbcommon-0.9.1.tar.xz"