aboutsummaryrefslogtreecommitdiffstats
path: root/main/xkeyboard-config/APKBUILD
blob: d666f5cdc6c1679e25db0ced2ff99d1b33c029b5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xkeyboard-config
pkgver=2.15
pkgrel=0
pkgdesc="X keyboard configuration files"
url="http://www.freedesktop.org/wiki/Software/XKeyboardConfig"
arch="noarch"
license="custom"
depends=
subpackages=
makedepends="xkbcomp intltool libx11-dev"
source="http://xorg.freedesktop.org/archive/individual/data/xkeyboard-config/xkeyboard-config-$pkgver.tar.bz2
	"

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

prepare() {
	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 \
		--with-xkb-base=/usr/share/X11/xkb \
		--with-xkb-rules-symlink=xorg \
		--enable-compat-rules=yes \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/share/X11/xkb/compiled || return 1
	install -m755 -d "$pkgdir"/var/lib/xkb
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="4af1deeb7c5f4cad62e65957d98d6758  xkeyboard-config-2.15.tar.bz2"
sha256sums="0e443cf7ca2f0b40846472c029647a05933fc705d611e1478c4db8a48a6f38bf  xkeyboard-config-2.15.tar.bz2"
sha512sums="64212cdf75bdf7af29134d718a041489c9bca20b1c7d6d8e4b81373eb72b26deed0728a23448083fc918c8cb8bb41341d76de26c85496a528aa120a47d268d66  xkeyboard-config-2.15.tar.bz2"