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

Jan de Groot jgc at archlinux.org
Tue Sep 20 09:25:43 UTC 2016


    Date: Tuesday, September 20, 2016 @ 09:25:43
  Author: jgc
Revision: 276726

upgpkg: gtk3 3.22.0-1

Modified:
  gtk3/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-20 08:39:55 UTC (rev 276725)
+++ PKGBUILD	2016-09-20 09:25:43 UTC (rev 276726)
@@ -4,7 +4,7 @@
 
 pkgbase=gtk3
 pkgname=(gtk3 gtk-update-icon-cache)
-pkgver=3.20.9
+pkgver=3.22.0
 pkgrel=1
 pkgdesc="GObject-based multi-platform GUI toolkit"
 arch=(i686 x86_64)
@@ -12,26 +12,32 @@
 depends=(atk cairo libcups libxcursor libxinerama libxrandr libxi libepoxy gdk-pixbuf2
          libxcomposite libxdamage pango shared-mime-info colord at-spi2-atk wayland libxkbcommon
          adwaita-icon-theme json-glib rest librsvg wayland-protocols desktop-file-utils mesa)
-makedepends=(gobject-introspection libcanberra gtk-doc)
+makedepends=(gobject-introspection libcanberra gtk-doc git)
 license=(LGPL)
-source=(https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-$pkgver.tar.xz
+_commit=b51255b6a7a883e4e5977057707205ab8f225d55
+source=("git://git.gnome.org/gtk+#commit=$_commit"
         settings.ini
         gtk-query-immodules-3.0.hook
         gtk-update-icon-cache.hook
         gtk-update-icon-cache.script)
-sha256sums=('83a609ba2f3424b5509e73967c49c67833af466d6f91081b24ee5c64fce6ac17'
+sha256sums=('SKIP'
             '01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202'
             'de46e5514ff39a7a65e01e485e874775ab1c0ad20b8e94ada43f4a6af1370845'
             '496064a9dd6214bd58f689dd817dbdc4d7f17d42a8c9940a87018c3f829ce308'
             'f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541')
 
+pkgver() {
+  cd gtk+
+  git describe --tags | sed 's/-/+/g'
+}
+
 prepare() {
-    cd gtk+-$pkgver
+    cd gtk+
     NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-    cd "gtk+-$pkgver"
+    cd gtk+
 
     CXX=/bin/false ./configure --prefix=/usr \
         --sysconfdir=/etc \
@@ -39,7 +45,8 @@
         --disable-schemas-compile \
         --enable-x11-backend \
         --enable-broadway-backend \
-        --enable-wayland-backend
+        --enable-wayland-backend \
+        --enable-gtk-doc
 
     #https://bugzilla.gnome.org/show_bug.cgi?id=655517
     sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
@@ -52,7 +59,7 @@
     optdepends=('libcanberra: gtk3-widget-factory demo')
     install=gtk3.install
 
-    cd "gtk+-$pkgver"
+    cd gtk+
     make DESTDIR="$pkgdir" install
 
     install -Dm644 ../settings.ini "$pkgdir/usr/share/gtk-3.0/settings.ini"
@@ -66,7 +73,7 @@
     pkgdesc="GTK+ icon cache updater"
     depends=(gdk-pixbuf2 hicolor-icon-theme)
 
-    cd gtk+-$pkgver
+    cd gtk+
     install -D gtk/gtk-update-icon-cache "$pkgdir/usr/bin/gtk-update-icon-cache"
     install -Dm644 ../gtk-update-icon-cache.hook "$pkgdir/usr/share/libalpm/hooks/gtk-update-icon-cache.hook"
     install -D ../gtk-update-icon-cache.script "$pkgdir/usr/share/libalpm/scripts/gtk-update-icon-cache"



More information about the arch-commits mailing list