aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxkbcommon/APKBUILD
blob: d74792a1338244e5282b75ae6ec5263173136217 (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.3.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"
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="935cf416354bf05210de2e389484f7e8  libxkbcommon-0.3.2.tar.xz"
sha256sums="cc378a47b01b00226ecf647b69e07df04091323846124b366cf835e5cdf5a88a  libxkbcommon-0.3.2.tar.xz"
sha512sums="ae312ce507971d6845d251b89b8c6ced532ea8e955b54f86aa9d084cbb0feec197bb6596eabb4ebf945ae54f9df3c206d96dea899258fa081d5eae58aa23ff56  libxkbcommon-0.3.2.tar.xz"