aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxkbcommon/APKBUILD
blob: cee3192790138c20108ef44b7a7d23485dad5a01 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libxkbcommon
pkgver=0.6.1
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
}

md5sums="67a8f322b5fa32352272e811bb90dd73  libxkbcommon-0.6.1.tar.xz"
sha256sums="5b0887b080b42169096a61106661f8d35bae783f8b6c58f97ebcd3af83ea8760  libxkbcommon-0.6.1.tar.xz"
sha512sums="5eab309d711ef3f4ce6d98ddd72f7f67fb6374eeea5fa13d37019830847a48a100d5b61b0312787966020c85b180b3ee8a5fd8e7acd3a8a9220ca53dcc411370  libxkbcommon-0.6.1.tar.xz"