summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:25:03 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:25:03 (GMT)
commit80ac3ab1b67c29b870f6b3ab2b31c36a4cfa24de (patch)
treeb7870e52bd86e257cc68d0d73ad12067c94d92dc /abs/core
parent2e4361d7e1a7815e79bc8aff478d7089278882de (diff)
downloadlinhes_pkgbuild-80ac3ab1b67c29b870f6b3ab2b31c36a4cfa24de.zip
linhes_pkgbuild-80ac3ab1b67c29b870f6b3ab2b31c36a4cfa24de.tar.gz
linhes_pkgbuild-80ac3ab1b67c29b870f6b3ab2b31c36a4cfa24de.tar.bz2
giflib 4.1.6
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/giflib/PKGBUILD36
1 files changed, 21 insertions, 15 deletions
diff --git a/abs/core/giflib/PKGBUILD b/abs/core/giflib/PKGBUILD
index 8ecf503..d92ecb7 100644
--- a/abs/core/giflib/PKGBUILD
+++ b/abs/core/giflib/PKGBUILD
@@ -1,3 +1,4 @@
+# $Id: PKGBUILD 151260 2012-02-25 10:17:00Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Baptiste Daroussin <baptiste.daroussin@gmail.com>
# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
@@ -5,12 +6,12 @@
pkgname=giflib
pkgver=4.1.6
-pkgrel=4
+pkgrel=5
pkgdesc="A library for reading and writing gif images"
url="http://sourceforge.net/projects/giflib/"
arch=('i686' 'x86_64')
license=('MIT')
-depends=('libx11' 'libsm')
+depends=('libx11')
provides=("libungif=${pkgver}")
conflicts=('libungif')
replaces=('libungif')
@@ -19,20 +20,25 @@ source=(http://downloads.sourceforge.net/sourceforge/giflib/${pkgname}-${pkgver}
md5sums=('7125644155ae6ad33dbc9fc15a14735f')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/usr || return 1
- make || return 1
-}
-package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install || return 1
- install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
- install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i '/AC_PATH_XTRA/d' configure.ac
+ libtoolize -f
+ autoreconf
+ ./configure --prefix=/usr --disable-static
+ make
# 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} || return 1
- install -m755 libungif.so.${pkgver} ${pkgdir}/usr/lib/ || return 1
- ln -sf libungif.so.${pkgver} ${pkgdir}/usr/lib/libungif.so.4 || return 1
- ln -sf libungif.so.4 ${pkgdir}/usr/lib/libungif.so || return 1
+ gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.${pkgver}
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -m755 libungif.so.${pkgver} "${pkgdir}/usr/lib/"
+ ln -sf libungif.so.${pkgver} "${pkgdir}/usr/lib/libungif.so.4"
+ ln -sf libungif.so.4 "${pkgdir}/usr/lib/libungif.so"
+
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}