Commit 30c9c4b7 authored by Giuseppe's avatar Giuseppe

added lib32-gdk-pixbuf2

parent 7d591784
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=gdk-pixbuf2
pkgname=lib32-$_pkgbasename
pkgver=2.22.0
pkgrel=1
pkgdesc="An image loading library for gtk2 (32-bit)"
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
license=('GPL2')
depends=('lib32-glib2>=2.25.15'
lib32-lib{'png>=1.4.3','tiff>=3.9.4','jpeg>=8.0.2',x11}
$_pkgbasename)
makedepends=(gcc-multilib)
options=('!libtool' '!docs')
install=gdk-pixbuf2.install
source=(http://download.gnome.org/sources/gdk-pixbuf/2.22/gdk-pixbuf-${pkgver}.tar.bz2)
sha256sums=('b8ff6a308f037af6b501246ad8779a951ca92af975efc2e97c354ea6702667cf')
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-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-csource
}
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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment