[arch-commits] Commit in giflib/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Sat Feb 25 10:15:50 UTC 2012


    Date: Saturday, February 25, 2012 @ 05:15:50
  Author: allan
Revision: 151259

upgpkg: giflib 4.1.6-5

signing rebuild

Modified:
  giflib/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-25 10:09:52 UTC (rev 151258)
+++ PKGBUILD	2012-02-25 10:15:50 UTC (rev 151259)
@@ -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 @@
   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"
 }




More information about the arch-commits mailing list