aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxkbfile/APKBUILD
blob: 24a42a5442a8e60fc792779608c35953252048d3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxkbfile
pkgver=1.1.0
pkgrel=0
pkgdesc="X11 keyboard file manipulation library"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
depends=
makedepends="libx11-dev util-macros"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"

build () {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -D -m644 "$srcdir"/$pkgname-$pkgver/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="1c6a57564e916ccdc3df3c49b9f3589f701df0cec55112c12ddc35ac3ed556608c28fe98e5ba0ac1962e9a65ed1e90eb7e6169b564951bf55a7cf3499b745826  libxkbfile-1.1.0.tar.bz2"