From f6a79a3f5989efc8db63af942851c56f0c462bb1 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 26 Feb 2012 23:15:00 +0000 Subject: Sun Feb 26 23:15:00 UTC 2012 --- extra/giflib/PKGBUILD | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'extra/giflib/PKGBUILD') diff --git a/extra/giflib/PKGBUILD b/extra/giflib/PKGBUILD index 86d445528..d92ecb746 100644 --- a/extra/giflib/PKGBUILD +++ b/extra/giflib/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 117538 2011-04-04 10:27:03Z jgc $ +# $Id: PKGBUILD 151260 2012-02-25 10:17:00Z allan $ # Maintainer: Jan de Groot # Contributor: Baptiste Daroussin # Contributor: Grigorios Bouzakis @@ -6,7 +6,7 @@ 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') @@ -26,14 +26,19 @@ build() { autoreconf ./configure --prefix=/usr --disable-static make - make DESTDIR="${pkgdir}" install - install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" # 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} +} + +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" } -- cgit v1.2.3-54-g00ecf