[arch-commits] Commit in giflib/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Mon Apr 4 10:27:03 UTC 2011
Date: Monday, April 4, 2011 @ 06:27:03
Author: jgc
Revision: 117538
upgpkg: giflib 4.1.6-4
Build without AC_PATH_XTRA, disable static library
Modified:
giflib/trunk/PKGBUILD (contents, properties)
----------+
PKGBUILD | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-04-04 10:23:22 UTC (rev 117537)
+++ PKGBUILD 2011-04-04 10:27:03 UTC (rev 117538)
@@ -1,3 +1,4 @@
+# $Id$
# Maintainer: Jan de Groot <jgc at archlinux.org>
# Contributor: Baptiste Daroussin <baptiste.daroussin at gmail.com>
# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
@@ -5,12 +6,12 @@
pkgname=giflib
pkgver=4.1.6
-pkgrel=3
+pkgrel=4
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,17 +20,20 @@
md5sums=('7125644155ae6ad33dbc9fc15a14735f')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/usr || return 1
- make || return 1
- 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
+ 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} || 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}
+ 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"
}
Property changes on: giflib/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
+ Id Revision
More information about the arch-commits
mailing list