[arch-commits] Commit in gdk-pixbuf2/trunk (3 files)

Jan Steffens heftig at archlinux.org
Fri Apr 29 22:30:12 UTC 2016


    Date: Saturday, April 30, 2016 @ 00:30:12
  Author: heftig
Revision: 266655

2.34.0-2

Added:
  gdk-pixbuf2/trunk/gdk-pixbuf-query-loaders.hook
Modified:
  gdk-pixbuf2/trunk/PKGBUILD
  gdk-pixbuf2/trunk/gdk-pixbuf2.install

-------------------------------+
 PKGBUILD                      |   30 ++++++++++++++++--------------
 gdk-pixbuf-query-loaders.hook |   11 +++++++++++
 gdk-pixbuf2.install           |   10 +---------
 3 files changed, 28 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-29 22:19:03 UTC (rev 266654)
+++ PKGBUILD	2016-04-29 22:30:12 UTC (rev 266655)
@@ -3,7 +3,7 @@
 
 pkgname=gdk-pixbuf2
 pkgver=2.34.0
-pkgrel=1
+pkgrel=2
 pkgdesc="An image loading library"
 arch=('i686' 'x86_64')
 url="http://www.gtk.org/"
@@ -11,23 +11,25 @@
 depends=('glib2' 'libpng' 'libtiff' 'libjpeg' 'libx11' 'jasper')
 makedepends=('gtk-doc' 'gobject-introspection')
 install=gdk-pixbuf2.install
-source=(http://download.gnome.org/sources/gdk-pixbuf/${pkgver:0:4}/gdk-pixbuf-$pkgver.tar.xz)
-sha256sums=('d55e5b383ee219bd0e23bf6ed4427d56a7db5379729a6e3e0a0e0eba9a8d8879')
+source=(http://download.gnome.org/sources/gdk-pixbuf/${pkgver:0:4}/gdk-pixbuf-$pkgver.tar.xz
+        gdk-pixbuf-query-loaders.hook)
+sha256sums=('d55e5b383ee219bd0e23bf6ed4427d56a7db5379729a6e3e0a0e0eba9a8d8879'
+            '963afcfacde9fd36031d93c8aa4c94a669ab1dbe9ba0d2cf17599b7d358e54c2')
 
 build() {
-  cd gdk-pixbuf-$pkgver
-  ./configure --prefix=/usr \
-    --with-x11 \
-    --with-libjasper \
-    --with-included-loaders=png
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
+    cd gdk-pixbuf-$pkgver
+    ./configure --prefix=/usr \
+        --with-x11 \
+        --with-libjasper \
+        --with-included-loaders=png
+    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+    make
 }
 
 package() {
-  cd gdk-pixbuf-$pkgver
-
-  make DESTDIR="$pkgdir" install
+    cd gdk-pixbuf-$pkgver
+    make DESTDIR="$pkgdir" install
+    install -Dm644 ../gdk-pixbuf-query-loaders.hook "$pkgdir/usr/share/libalpm/hooks/gdk-pixbuf-query-loaders.hook"
 }
 
-# vim:set ts=2 sw=2 et:
+# vim:set et sw=4:

Added: gdk-pixbuf-query-loaders.hook
===================================================================
--- gdk-pixbuf-query-loaders.hook	                        (rev 0)
+++ gdk-pixbuf-query-loaders.hook	2016-04-29 22:30:12 UTC (rev 266655)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so
+
+[Action]
+Description = Probing GDK-Pixbuf loader modules...
+When = PostTransaction
+Exec = /usr/bin/gdk-pixbuf-query-loaders --update-cache

Modified: gdk-pixbuf2.install
===================================================================
--- gdk-pixbuf2.install	2016-04-29 22:19:03 UTC (rev 266654)
+++ gdk-pixbuf2.install	2016-04-29 22:30:12 UTC (rev 266655)
@@ -1,11 +1,3 @@
-post_install() {
-   gdk-pixbuf-query-loaders --update-cache
-}
-
-post_upgrade() {
-    post_install
-}
-
 pre_remove() {
-    rm -f /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/loaders.cache
+    rm -f /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
 }



More information about the arch-commits mailing list