aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxkbcommon/APKBUILD
blob: 0fff99859eb36954305ad80935217437cd8f96ae (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libxkbcommon
pkgver=0.4.2
pkgrel=0
pkgdesc="a keyboard handling library"
url="http://www.xkbcommon.org/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev bison flex libxcb-dev"
install=""
subpackages="$pkgname-dev"
source="http://xkbcommon.org/download/libxkbcommon-$pkgver.tar.xz"

_builddir="$srcdir"/libxkbcommon-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="4b717adce41c8305258e99a9b396330a  libxkbcommon-0.4.2.tar.xz"
sha256sums="a0fc71b07eeddba4af62bd709e24cec219778bb6871384aa850b2f5798a48957  libxkbcommon-0.4.2.tar.xz"
sha512sums="b6b7098771e10d95d4e43b17b0c3c50b0e300e5f4626204bb094bd4ef513a5fdd87b9508922d40e48574785f5a1f136844d04450a1b7b433f75127e0fef5458c  libxkbcommon-0.4.2.tar.xz"