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

Christian Hesse eworm at archlinux.org
Mon Apr 15 14:30:52 UTC 2019


    Date: Monday, April 15, 2019 @ 14:30:51
  Author: eworm
Revision: 451698

upgpkg: lib32-libpng 1.6.37-1

new upstream release

Modified:
  lib32-libpng/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-15 14:30:12 UTC (rev 451697)
+++ PKGBUILD	2019-04-15 14:30:51 UTC (rev 451698)
@@ -5,7 +5,7 @@
 
 _pkgbasename=libpng
 pkgname=lib32-$_pkgbasename
-pkgver=1.6.36
+pkgver=1.6.37
 _apngver=1.6.36
 _libversion=16
 pkgrel=1
@@ -17,9 +17,18 @@
 makedepends=(gcc-multilib)
 source=("https://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.xz"
         "https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-${_apngver}-apng.patch.gz")
-sha256sums=('eceb924c1fa6b79172fdfd008d335f0e59172a86a66481e09d4089df872aa319'
+sha256sums=('505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca'
             '8c1f33da739b29a77e35e5a1ebcdffaab63bfe184be8b5a97677cc80156fdc0f')
 
+prepare() {
+  cd "${srcdir}/${_pkgbasename}-${pkgver}"
+
+  # Add animated PNG (apng) support
+  # see http://sourceforge.net/projects/libpng-apng/
+  patch -p1 -i "${srcdir}/libpng-${_apngver}-apng.patch"
+
+}
+
 build() {
   export CC="gcc -m32"
   export CXX="g++ -m32"
@@ -27,11 +36,11 @@
 
   cd "${srcdir}/${_pkgbasename}-${pkgver}"
 
-  # Add animated PNG (apng) support
-  # see http://sourceforge.net/projects/libpng-apng/
-  patch -p1 -i "${srcdir}/libpng-${_apngver}-apng.patch"
-
-  ./configure --prefix=/usr --libdir=/usr/lib32 --program-suffix=-32 --disable-static
+  ./configure \
+    --prefix=/usr \
+    --libdir=/usr/lib32 \
+    --program-suffix=-32 \
+    --disable-static
   make
 }
 
@@ -40,9 +49,6 @@
 
   make DESTDIR="${pkgdir}" install
 
-  cd contrib/pngminus
-  make PNGLIB="-L${pkgdir}/usr/lib32 -lpng" -f makefile.std png2pnm pnm2png
-
   rm -rf "${pkgdir}"/usr/{include,share}
 
   rm "$pkgdir/usr/bin/libpng-config"


More information about the arch-commits mailing list