Date: Friday, September 16, 2016 @ 09:08:48
  Author: jgc
Revision: 276528

upgpkg: yelp-tools 3.18.0+1+g193c2bd-1

Modified:
  yelp-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-16 09:03:21 UTC (rev 276527)
+++ PKGBUILD    2016-09-16 09:08:48 UTC (rev 276528)
@@ -3,24 +3,35 @@
 # Contributor: Jan de Groot <j...@archlinux.org>
 
 pkgname=yelp-tools
-pkgver=3.18.0
+pkgver=3.18.0+1+g193c2bd
 pkgrel=1
 pkgdesc="Tools for creating Yelp documentation"
 arch=('any')
 depends=('yelp-xsl' 'libxslt' 'libxml2' 'itstool')
+makedepends=('git')
 license=('GPL')
 options=('!emptydirs')
 url="http://www.gnome.org";
-source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('c6c1d65f802397267cdc47aafd5398c4b60766e0a7ad2190426af6c0d0716932')
+_commit=193c2bd0b4d9e80344184e3f14b21c4a5296701c
+source=("git://git.gnome.org/yelp-tools#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }

Reply via email to