summaryrefslogtreecommitdiff
path: root/multilib/lib32-giflib
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/lib32-giflib
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-giflib')
-rw-r--r--multilib/lib32-giflib/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/multilib/lib32-giflib/PKGBUILD b/multilib/lib32-giflib/PKGBUILD
new file mode 100644
index 000000000..a311cfa8e
--- /dev/null
+++ b/multilib/lib32-giflib/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: Baptiste Daroussin <baptiste.daroussin@gmail.com>
+# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
+# Contributor: mightyjaym <jm.ambrosino@free.fr>
+
+_pkgbasename=giflib
+pkgname=lib32-$_pkgbasename
+pkgver=4.1.6
+pkgrel=5
+pkgdesc="A library for reading and writing gif images (32-bit)"
+url="http://sourceforge.net/projects/giflib/"
+arch=('x86_64')
+license=('MIT')
+depends=('lib32-libx11' 'lib32-libsm' $_pkgbasename)
+makedepends=(gcc-multilib)
+provides=("lib32-libungif=${pkgver}")
+conflicts=('lib32-libungif')
+replaces=('lib32-libungif')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/sourceforge/giflib/${_pkgbasename}-${pkgver}.tar.bz2)
+md5sums=('7125644155ae6ad33dbc9fc15a14735f')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd ${srcdir}/${_pkgbasename}-${pkgver}
+ ./configure --prefix=/usr --libdir=/usr/lib32
+ make
+}
+
+package() {
+ cd ${srcdir}/${_pkgbasename}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ # libungif compatibility - instructions taken from Redhat specfile
+ MAJOR=`echo ${pkgver} | sed 's/\([0-9]\+\)\..*/\1/'`
+ gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.${pkgver}
+ install -m755 libungif.so.${pkgver} ${pkgdir}/usr/lib32/
+ ln -sf libungif.so.${pkgver} ${pkgdir}/usr/lib32/libungif.so.4
+ ln -sf libungif.so.4 ${pkgdir}/usr/lib32/libungif.so
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+ install -m755 -d ${pkgdir}/usr/share/licenses
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}