[arch-commits] Commit in gjs/trunk (PKGBUILD)

Jan de Groot jgc at archlinux.org
Wed Sep 21 12:39:48 UTC 2016


    Date: Wednesday, September 21, 2016 @ 12:39:47
  Author: jgc
Revision: 276801

upgpkg: gjs 1.46.0-1

Modified:
  gjs/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-21 12:10:43 UTC (rev 276800)
+++ PKGBUILD	2016-09-21 12:39:47 UTC (rev 276801)
@@ -2,7 +2,7 @@
 # Maintainer: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=gjs
-pkgver=1.45.4
+pkgver=1.46.0
 pkgrel=1
 pkgdesc="Javascript Bindings for GNOME"
 arch=(i686 x86_64)
@@ -9,12 +9,24 @@
 url="http://live.gnome.org/Gjs"
 license=(GPL)
 depends=(cairo gobject-introspection-runtime 'js>=24.2.0' 'gtk3')
-makedepends=('gobject-introspection')
-source=(https://download.gnome.org/sources/gjs/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('db51bc2aae51700a2a8ca8ba597c488505d106bc70b9605e77c6ab5183212228')
+makedepends=('gobject-introspection' 'git' 'gnome-common')
+_commit=caeb97adf1f3de02fe5c9d0cd3c1434999a1a6ce
+source=("git://git.gnome.org/gjs#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 --disable-static --libexecdir=/usr/lib
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
@@ -21,12 +33,12 @@
 }
 
 check() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   # Needs a display
   make -k check || :
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list