[arch-commits] Commit in libxkbcommon/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sat Nov 12 18:30:07 UTC 2016
Date: Saturday, November 12, 2016 @ 18:30:06
Author: heftig
Revision: 280610
0.7.0-1
Modified:
libxkbcommon/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++----------
1 file changed, 19 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-12 18:12:40 UTC (rev 280609)
+++ PKGBUILD 2016-11-12 18:30:06 UTC (rev 280610)
@@ -5,35 +5,44 @@
pkgbase=libxkbcommon
pkgname=(libxkbcommon libxkbcommon-x11)
-pkgver=0.6.1
+pkgver=0.7.0
pkgrel=1
-pkgdesc="Keyboard handling library using XKB data"
+pkgdesc="Keymap handling library for toolkits and window systems"
arch=(i686 x86_64)
-url="http://xkbcommon.org/"
+url="https://xkbcommon.org/"
license=(custom)
depends=(xkeyboard-config glibc)
checkdepends=(xorg-server-xvfb libgl)
-makedepends=(libxcb doxygen xorg-util-macros)
-source=("http://xkbcommon.org/download/$pkgname-$pkgver.tar.xz")
-md5sums=('67a8f322b5fa32352272e811bb90dd73')
+makedepends=(libxcb doxygen xorg-util-macros autoconf-archive git graphviz
+ wayland wayland-protocols)
+_commit=d596f6e3ff2d1fde0491907fa9354e5cdf154ed1 # tags/xkbcommon-0.7.0^0
+source=("git+https://github.com/xkbcommon/libxkbcommon#commit=$_commit")
+md5sums=('SKIP')
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/^xkbcommon-//;s/-/+/g'
+}
+
prepare() {
mkdir -p x11/usr/{include/xkbcommon,lib/pkgconfig}
+ cd $pkgbase
+ NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd $pkgbase-$pkgver
+ cd $pkgbase
./configure --prefix=/usr --disable-static
make
}
check() {
- cd $pkgbase-$pkgver
+ cd $pkgbase
xvfb-run -a make -k check
}
package_libxkbcommon() {
- cd $pkgbase-$pkgver
+ cd $pkgbase
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/libxkbcommon/LICENSE"
@@ -50,5 +59,5 @@
mv x11/* "$pkgdir"
- install -Dm644 $pkgbase-$pkgver/LICENSE "$pkgdir/usr/share/licenses/libxkbcommon-x11/LICENSE"
+ install -Dm644 $pkgbase/LICENSE "$pkgdir/usr/share/licenses/libxkbcommon-x11/LICENSE"
}
More information about the arch-commits
mailing list