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

Jan Steffens heftig at archlinux.org
Tue Sep 27 20:17:26 UTC 2016


    Date: Tuesday, September 27, 2016 @ 20:17:25
  Author: heftig
Revision: 277161

3.22.0+4+g87c38b3-1

Modified:
  gtksourceview3/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-27 20:17:13 UTC (rev 277160)
+++ PKGBUILD	2016-09-27 20:17:25 UTC (rev 277161)
@@ -3,8 +3,7 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=gtksourceview3
-_pkgbasename=gtksourceview
-pkgver=3.20.4
+pkgver=3.22.0+4+g87c38b3
 pkgrel=1
 pkgdesc="A text widget adding syntax highlighting and more to GNOME"
 url="https://wiki.gnome.org/Projects/GtkSourceView"
@@ -11,20 +10,31 @@
 arch=(i686 x86_64)
 license=(GPL)
 depends=(gtk3 libxml2)
-makedepends=(intltool gobject-introspection glade vala)
-source=(https://download.gnome.org/sources/$_pkgbasename/${pkgver:0:4}/$_pkgbasename-$pkgver.tar.xz)
-sha256sums=('7a0e6ac95ff3862bd8ef77a40e95a942939e73cb407f2eb67af600d7ce533d01')
+makedepends=(intltool gobject-introspection glade vala gtk-doc autoconf-archive git)
+_commit=87c38b3f0c9adb2cf05520b20bbaf697bc9feac9  # gnome-3-22
+source=("git://git.gnome.org/gtksourceview#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd gtksourceview
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd gtksourceview
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd "$_pkgbasename-$pkgver"
+  cd gtksourceview
   ./configure --prefix=/usr --sysconfdir=/etc \
       --localstatedir=/var --disable-static \
-      --enable-glade-catalog
+      --enable-glade-catalog --enable-gtk-doc
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 package() {
-  cd "$_pkgbasename-$pkgver"
+  cd gtksourceview
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list