[arch-commits] Commit in giflib/repos (4 files)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Thu May 9 16:05:06 EDT 2013


    Date: Thursday, May 9, 2013 @ 22:05:05
  Author: bpiotrowski
Revision: 185001

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  giflib/repos/testing-i686/
  giflib/repos/testing-i686/PKGBUILD
    (from rev 185000, giflib/trunk/PKGBUILD)
  giflib/repos/testing-x86_64/
  giflib/repos/testing-x86_64/PKGBUILD
    (from rev 185000, giflib/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

Copied: giflib/repos/testing-i686/PKGBUILD (from rev 185000, giflib/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2013-05-09 20:05:05 UTC (rev 185001)
@@ -0,0 +1,48 @@
+# $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>
+# Contributor: mightyjaym <jm.ambrosino at free.fr>
+
+pkgname=giflib
+pkgver=4.2.1
+pkgrel=1
+pkgdesc="A library for reading and writing gif images"
+url="http://sourceforge.net/projects/giflib/"
+arch=('i686' 'x86_64')
+license=('MIT')
+depends=('libx11')
+makedepends=('xmlto' 'docbook-xml' 'docbook-xsl')
+provides=("libungif=${pkgver}")
+conflicts=('libungif')
+replaces=('libungif')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/sourceforge/giflib/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('bbd3324af24156d5d7e66ab1cee8508d')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -i -e '/AC_PATH_XTRA/d' -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADER/' configure.ac
+  autoreconf -fi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./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}
+}
+
+package() {
+  cd ${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"
+}

Copied: giflib/repos/testing-x86_64/PKGBUILD (from rev 185000, giflib/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2013-05-09 20:05:05 UTC (rev 185001)
@@ -0,0 +1,48 @@
+# $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>
+# Contributor: mightyjaym <jm.ambrosino at free.fr>
+
+pkgname=giflib
+pkgver=4.2.1
+pkgrel=1
+pkgdesc="A library for reading and writing gif images"
+url="http://sourceforge.net/projects/giflib/"
+arch=('i686' 'x86_64')
+license=('MIT')
+depends=('libx11')
+makedepends=('xmlto' 'docbook-xml' 'docbook-xsl')
+provides=("libungif=${pkgver}")
+conflicts=('libungif')
+replaces=('libungif')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/sourceforge/giflib/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('bbd3324af24156d5d7e66ab1cee8508d')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -i -e '/AC_PATH_XTRA/d' -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADER/' configure.ac
+  autoreconf -fi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./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}
+}
+
+package() {
+  cd ${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"
+}



More information about the arch-commits mailing list