aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxklavier/APKBUILD
blob: f692836ce6a1471e0ee697f9c6d9b4ce6541a6b3 (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=libxklavier
pkgver=5.4
pkgrel=1
pkgdesc="High-level API for X Keyboard Extension"
url="http://gswitchit.sourceforge.net"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends="xkeyboard-config iso-codes"
depends_dev="libxml2-dev glib-dev gettext-dev libxkbfile-dev"
makedepends="$depends_dev glib-dev libxi-dev iso-codes-dev gettext-dev
	gobject-introspection-dev"

_v=$pkgver
case $pkgver in
*.*.*) _v=${pkgver%.*};;
*.*.*.*) _v=${pkgver%.*.*};;
esac

source="http://people.freedesktop.org/~svu/libxklavier-$pkgver.tar.bz2"


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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-xkb-base=/usr/share/X11/xkb \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="13af74dcb6011ecedf1e3ed122bd31fa  libxklavier-5.4.tar.bz2"
sha256sums="17a34194df5cbcd3b7bfd0f561d95d1f723aa1c87fca56bc2c209514460a9320  libxklavier-5.4.tar.bz2"
sha512sums="e9342d94f6cd67e900e44d9751ee0d8c75bec8e3a7b30989612bd71a5f890be52ff843465162dbbe0bfc9004da76e1d47158a4671b8f915e51c91f9d82f7baae  libxklavier-5.4.tar.bz2"