lib32/lib32-gdk-pixbuf2/PKGBUILD

50 lines
1.3 KiB
Bash
Raw Normal View History

2011-01-16 18:39:12 +08:00
# 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
2012-11-23 18:42:12 +08:00
pkgver=2.26.4
2012-12-18 04:17:27 +08:00
pkgrel=2
2011-01-16 18:39:12 +08:00
pkgdesc="An image loading library for gtk2 (32-bit)"
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
license=('GPL2')
depends=('lib32-glib2'
lib32-lib{'png','tiff','jpeg','ffi','x11'}
2011-01-16 18:39:12 +08:00
$_pkgbasename)
makedepends=(gcc-multilib)
options=('!libtool' '!docs')
install=gdk-pixbuf2.install
source=(http://download.gnome.org/sources/gdk-pixbuf/2.26/gdk-pixbuf-${pkgver}.tar.xz)
2012-11-23 18:42:12 +08:00
sha256sums=('a91458645f078debf204fef8bb06b30f356fcb5d48f65395132a5dba2b3510be')
2011-01-16 18:39:12 +08:00
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 \
2012-07-18 01:48:05 +08:00
--with-x11 \
2011-01-16 18:39:12 +08:00
--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
rm gdk-pixbuf-pixdata
2011-01-16 18:39:12 +08:00
}