blob: e3897298147f48838c7c006c341d4ed5ca42721f (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxklavier
pkgver=5.3
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"
makedepends="pkgconfig libxkbfile-dev libxml2-dev glib-dev libxi-dev iso-codes
gettext-dev libiconv-dev gobject-introspection-dev"
_v=$pkgver
case $pkgver in
*.*.*) _v=${pkgver%.*};;
*.*.*.*) _v=${pkgver%.*.*};;
esac
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${_v}/$pkgname-$pkgver.tar.xz"
depends_dev="libxml2-dev glib-dev gettext-dev libxkbfile-dev"
_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
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="290ea2a8abc40f78a3a16bdae6f02808 libxklavier-5.3.tar.xz"
|