Date: Monday, October 30, 2017 @ 22:26:03
  Author: heftig
Revision: 264827

3.26.2-1

Modified:
  simple-scan/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-10-30 21:35:16 UTC (rev 264826)
+++ PKGBUILD    2017-10-30 22:26:03 UTC (rev 264827)
@@ -4,7 +4,7 @@
 # Contributor: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
 
 pkgname=simple-scan
-pkgver=3.26.1
+pkgver=3.26.2
 pkgrel=1
 pkgdesc="Simple scanning utility"
 url="https://launchpad.net/simple-scan";
@@ -11,18 +11,24 @@
 arch=(i686 x86_64)
 license=(GPL3)
 depends=(sane dconf gtk3 colord libgusb)
-makedepends=(yelp-tools meson vala)
-source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('1e756edd8903d526da1c7e54810277969700a0b9618aa3d105c914e4276ae70e')
+makedepends=(yelp-tools meson vala git)
+_commit=6ed023f9d94d1d394d7a98505004b53b9bf99a38  # tags/3.26.2^0
+source=("git+https://git.gnome.org/browse/simple-scan#commit=$_commit";)
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
 prepare() {
   mkdir build
-  cd $pkgname-$pkgver
+  cd $pkgname
 }
 
 build() {
   cd build
-  arch-meson ../$pkgname-$pkgver
+  arch-meson ../$pkgname
   ninja
 }
 

Reply via email to