diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-03 03:28:00 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-03 03:28:00 +0000 |
commit | 5646de4a9273897b8a619641ed988c4bb217a509 (patch) | |
tree | 9f4c0ca7e9066f8eb5f065eb7102d06d923470b2 /extra/libxkbcommon | |
parent | 171120794a952c6e0e75aef6ecdf46cd6d5154c8 (diff) |
Mon Feb 3 03:26:00 UTC 2014
Diffstat (limited to 'extra/libxkbcommon')
-rw-r--r-- | extra/libxkbcommon/PKGBUILD | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/extra/libxkbcommon/PKGBUILD b/extra/libxkbcommon/PKGBUILD index 7742601b6..2ee318e8c 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) 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" } |