summaryrefslogtreecommitdiff
path: root/multilib-staging/lib32-gdk-pixbuf2
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-28 01:12:25 -0700
committerroot <root@rshg054.dnsready.net>2013-04-28 01:12:25 -0700
commitf38edbff3878008c8b2ae1ca8a496c349763017b (patch)
tree4f9ff6891842a0a6dcd9c0c8424ec8f16527e023 /multilib-staging/lib32-gdk-pixbuf2
parenta27a6af53095da314eca1d33911f72775dfc2bce (diff)
Sun Apr 28 01:11:42 PDT 2013
Diffstat (limited to 'multilib-staging/lib32-gdk-pixbuf2')
-rw-r--r--multilib-staging/lib32-gdk-pixbuf2/PKGBUILD46
-rw-r--r--multilib-staging/lib32-gdk-pixbuf2/gdk-pixbuf2.install11
2 files changed, 57 insertions, 0 deletions
diff --git a/multilib-staging/lib32-gdk-pixbuf2/PKGBUILD b/multilib-staging/lib32-gdk-pixbuf2/PKGBUILD
new file mode 100644
index 000000000..a517b2722
--- /dev/null
+++ b/multilib-staging/lib32-gdk-pixbuf2/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 89167 2013-04-27 12:41:00Z ioni $
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+_pkgbasename=gdk-pixbuf2
+pkgname=lib32-$_pkgbasename
+pkgver=2.28.1
+pkgrel=2
+pkgdesc="An image loading library (32-bit)"
+arch=('x86_64')
+url="http://www.gtk.org/"
+license=('LGPL2')
+depends=(lib32-glib2 lib32-libpng lib32-libtiff lib32-libjpeg lib32-libx11
+ $_pkgbasename)
+makedepends=(gcc-multilib)
+options=('!libtool' '!docs')
+install=gdk-pixbuf2.install
+source=(http://download.gnome.org/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-${pkgver}.tar.xz)
+sha256sums=('bea0b743fdb5c3c8e23210f73623ec5f18f9ead2522942897fe739d80b50c2bb')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd "${srcdir}/gdk-pixbuf-${pkgver}"
+
+ ./configure --prefix=/usr --libdir=/usr/lib32 \
+ --without-libjasper \
+ --with-x11 \
+ --with-included-loaders=png
+ make
+}
+
+package() {
+ cd "${srcdir}/gdk-pixbuf-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/etc
+ rm -rf "${pkgdir}"/usr/{include,share}
+
+ cd "${pkgdir}"/usr/bin
+ mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-32
+ rm gdk-pixbuf-pixdata
+ rm gdk-pixbuf-csource
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/multilib-staging/lib32-gdk-pixbuf2/gdk-pixbuf2.install b/multilib-staging/lib32-gdk-pixbuf2/gdk-pixbuf2.install
new file mode 100644
index 000000000..92d58ef04
--- /dev/null
+++ b/multilib-staging/lib32-gdk-pixbuf2/gdk-pixbuf2.install
@@ -0,0 +1,11 @@
+post_install() {
+ usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ rm -f usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/loaders.cache
+}