Date: Sunday, December 3, 2017 @ 22:57:30 Author: jgc Revision: 311593
upgpkg: libxklavier 5.4-2 Switch to HTTPS, use git instead of downloading a snapshot from cgit Modified: libxklavier/trunk/PKGBUILD ----------+ PKGBUILD | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-03 22:52:02 UTC (rev 311592) +++ PKGBUILD 2017-12-03 22:57:30 UTC (rev 311593) @@ -4,19 +4,25 @@ pkgname=libxklavier pkgver=5.4 -pkgrel=1 +pkgrel=2 pkgdesc="High-level API for X Keyboard Extension" arch=(x86_64) license=('LGPL') depends=('glib2' 'libxkbfile' 'libxml2' 'xkeyboard-config' 'libxi' 'iso-codes') -makedepends=('gobject-introspection' 'intltool' 'gtk-doc' 'libxfixes') +makedepends=('gobject-introspection' 'intltool' 'gtk-doc' 'libxfixes' git) options=('!emptydirs') -url="http://gswitchit.sourceforge.net" -source=("http://cgit.freedesktop.org/$pkgname/snapshot/$pkgname-$pkgver.zip") -sha256sums=('d5d2c135e3227142f5b455b9ffdf3e05be4b1e85a6c2882f8e905cc30c362d3e') +url="https://www.freedesktop.org/wiki/Software/LibXklavier/" +_commit=396955bd2ba2db34a42b3807b03155fcc11dfe50 # tags/libxklavier-5.4^0 +source=("git+https://anongit.freedesktop.org/git/libxklavier#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/^libxklavier-//;s/-/+/g' +} + build() { - cd "$pkgname-$pkgver" + cd "$pkgname" ./autogen.sh --prefix=/usr --with-xkb-bin-base=/usr/bin \ --with-xkb-base=/usr/share/X11/xkb --disable-static --enable-gtk-doc make @@ -23,6 +29,6 @@ } package() { - cd "$pkgname-$pkgver" + cd "$pkgname" make DESTDIR="$pkgdir" install }