summaryrefslogtreecommitdiff
path: root/extra/libxkbcommon/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libxkbcommon/PKGBUILD')
-rw-r--r--extra/libxkbcommon/PKGBUILD39
1 files changed, 29 insertions, 10 deletions
diff --git a/extra/libxkbcommon/PKGBUILD b/extra/libxkbcommon/PKGBUILD
index 0e90dbb98..9ec2205e2 100644
--- a/extra/libxkbcommon/PKGBUILD
+++ b/extra/libxkbcommon/PKGBUILD
@@ -1,29 +1,48 @@
-# $Id: PKGBUILD 200283 2013-11-24 18:55:11Z heftig $
+# $Id: PKGBUILD 204980 2014-02-02 18:43:24Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Mladen Pejakovic <pejakm@gmail.com>
-pkgname=libxkbcommon
-pkgver=0.3.2
+pkgbase=libxkbcommon
+pkgname=(libxkbcommon libxkbcommon-x11)
+pkgver=0.4.0
pkgrel=1
pkgdesc="Keyboard handling library using XKB data"
arch=(i686 x86_64 mips64el)
url="http://xkbcommon.org/"
license=(custom)
depends=(xkeyboard-config glibc)
-makedepends=(doxygen xorg-util-macros)
+makedepends=(libxcb doxygen xorg-util-macros)
source=("http://xkbcommon.org/download/$pkgname-$pkgver.tar.xz")
-#source=("$pkgname-$pkgver::git://github.com/xkbcommon/$pkgname.git")
-md5sums=('935cf416354bf05210de2e389484f7e8')
+md5sums=('bb782f1700e45b4f57c84ef513e3cf85')
+
+prepare() {
+ mkdir -p x11/usr/{include/xkbcommon,lib/pkgconfig}
+}
build() {
- cd $pkgname-$pkgver
+ cd $pkgbase-$pkgver
./configure --prefix=/usr --disable-static
make
}
-package() {
- cd $pkgname-$pkgver
+package_libxkbcommon() {
+ cd $pkgbase-$pkgver
make DESTDIR="$pkgdir" install
- install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/libxkbcommon/LICENSE"
+
+### Split libxkbcommon-x11
+
+ mv "$pkgdir"/usr/lib/*x11* "$srcdir/x11/usr/lib"
+ mv "$pkgdir"/usr/lib/pkgconfig/*x11* "$srcdir/x11/usr/lib/pkgconfig"
+ mv "$pkgdir"/usr/include/xkbcommon/*x11* "$srcdir/x11/usr/include/xkbcommon"
+}
+
+package_libxkbcommon-x11() {
+ pkgdesc="Keyboard handling library using XKB data for X11 XCB clients"
+ depends=(libxkbcommon libxcb)
+
+ mv x11/* "$pkgdir"
+
+ install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir/usr/share/licenses/libxkbcommon-x11/LICENSE"
}