[arch-commits] Commit in lib32-libpng12/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Sat Aug 20 09:09:22 UTC 2016
Date: Saturday, August 20, 2016 @ 09:09:21
Author: alucryd
Revision: 187145
upgpkg: lib32-libpng12 1.2.56-1
Modified:
lib32-libpng12/trunk/PKGBUILD
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++------------------------------
1 file changed, 30 insertions(+), 30 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-08-20 09:09:01 UTC (rev 187144)
+++ PKGBUILD 2016-08-20 09:09:21 UTC (rev 187145)
@@ -1,5 +1,6 @@
# $Id$
-# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Arthur Zamarin <arthurzam at gmail.com>
# Contributor: trya <tryagainprod at gmail.com>
# Contributor: Jan de Groot <jgc at archlinux.org>
# Contributor: dorphell <dorphell at archlinux.org>
@@ -6,52 +7,51 @@
# Contributor: Travis Willard <travis at archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
-_pkgbasename=libpng
pkgname=lib32-libpng12
-pkgver=1.2.51
-pkgrel=2
-pkgdesc="A collection of routines used to create PNG format graphics files (32-bit, 1.2 branch)"
+pkgver=1.2.56
+pkgrel=1
+pkgdesc='A collection of routines used to create PNG format graphics files'
arch=('x86_64')
-url="http://www.libpng.org/pub/png/libpng.html"
+url='http://www.libpng.org/pub/png/libpng.html'
license=('custom')
-depends=('lib32-zlib' 'libpng12')
-options=('!libtool')
+depends=('lib32-glibc' 'lib32-zlib' 'libpng12')
+makedepends=('gcc-multilib')
source=("http://sourceforge.net/projects/libpng/files/libpng-${pkgver}.tar.xz"
"http://sourceforge.net/projects/apng/files/libpng/libpng12/libpng-${pkgver}-apng.patch.gz")
-md5sums=('4efba67fa5aa2b785c6fcec2cc3e90c9'
- '28bde2a02e40ccdc60ff7c8e6b2118bf')
+sha256sums=('24ce54581468b937734a6ecc86f7e121bc46a90d76a0d948dca08f32ee000dbe'
+ '454631947201483930c759ecb3741618258e8143db4ff13b0d938b4238bc8708')
-prepare(){
- cd "${srcdir}/${_pkgbasename}-${pkgver}"
+prepare() {
+ cd libpng-${pkgver}
- # Add animated PNG (apng) support
- # see http://sourceforge.net/projects/libpng-apng/
- patch -Np0 -i "${srcdir}/libpng-${pkgver}-apng.patch"
-}
+ patch -Np0 -i ../libpng-${pkgver}-apng.patch
-build() {
- export CC="gcc -m32"
- export CXX="g++ -m32"
- export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-
- cd "${srcdir}/${_pkgbasename}-${pkgver}"
-
libtoolize --force --copy
aclocal
autoconf
automake --add-missing
+}
- ./configure --prefix=/usr --libdir=/usr/lib32
+build() {
+ cd libpng-${pkgver}
+
+ export CC='gcc -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+ ./configure \
+ --prefix='/usr' \
+ --libdir='/usr/lib32'
make
}
package() {
- cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ cd libpng-${pkgver}
+
make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/usr/{bin,include,lib32/{libpng.{a,so},pkgconfig},share}
- rm -f ${pkgdir}/usr/lib32/{libpng.so,libpng.a,pkgconfig/libpng.pc}
- rm -rf ${pkgdir}/usr/{include,share,bin}
+ install -dm 755 "${pkgdir}"/usr/share/licenses
+ ln -s libpng12 "${pkgdir}"/usr/share/licenses/lib32-libpng12
+}
- mkdir -p "${pkgdir}/usr/share/licenses"
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list