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

Jan de Groot jgc at archlinux.org
Wed Sep 28 09:08:35 UTC 2016


    Date: Wednesday, September 28, 2016 @ 09:08:35
  Author: jgc
Revision: 277232

upgpkg: sushi 3.21.91-1

Modified:
  sushi/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-28 08:57:49 UTC (rev 277231)
+++ PKGBUILD	2016-09-28 09:08:35 UTC (rev 277232)
@@ -3,7 +3,7 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=sushi
-pkgver=3.20.0
+pkgver=3.21.91
 pkgrel=1
 pkgdesc="A quick previewer for Nautilus"
 arch=(i686 x86_64)
@@ -12,26 +12,33 @@
 groups=(gnome)
 depends=(clutter-gtk clutter-gst gjs libmusicbrainz5 webkit2gtk gtksourceview3 evince)
 optdepends=('unoconv: OpenDocument formats')
-makedepends=(intltool gobject-introspection)
-source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('6e729c789e9e7f02505e25d4ac6cfed47e676366f0942fca740094f7fe9eae9e')
+makedepends=(intltool gobject-introspection gnome-common git)
+_commit=acbfbf9ab9e6f9fe418f0f0f33efa7a7511b0607  # tags/3.21.91^0
+source=("git://git.gnome.org/sushi#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
 prepare() {
-  cd $pkgname-$pkgver
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
 
   ./configure --prefix=/usr --libexecdir=/usr/lib/$pkgname
 
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/      func_append compile_command " -Wl,-O1,--as-needed"\n      func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
 
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }
 



More information about the arch-commits mailing list