Hello, i merged few PKGBUILDs together and created one for libpng12 which include additional files...
save this as "PKDBUILD" and run "makepkg" in the same directory:
# $Id$
# Maintainer: Maxime Gauduin <[email protected]>
# Contributor: Arthur Zamarin <[email protected]>
# Contributor: trya <[email protected]>
# Contributor: Jan de Groot <[email protected]>
# Contributor: dorphell <[email protected]>
# Contributor: Travis Willard <[email protected]>
# Contributor: Douglas Soares de Andrade <[email protected]>
pkgname=libpng12
pkgver=1.2.57
pkgrel=1
pkgdesc='A collection of routines used to create PNG format graphics files'
arch=('i686' 'x86_64')
url='http://www.libpng.org/pub/png/libpng.html'
license=('custom')
depends=('glibc' 'zlib')
source=("https://sourceforge.net/projects/libpng/files/libpng-${pkgver}.tar.xz"{,.asc}
"https://sourceforge.net/projects/apng/files/libpng/libpng12/libpng-${pkgver}-apng.patch.gz")
validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn Randers-Pehrson
sha256sums=('0f4620e11fa283fedafb474427c8e96bf149511a1804bdc47350963ae5cf54d8'
'SKIP'
'7cae56ef3b8101d2106fc9c487c53ac600d8699913422b80e068bb50c41bebb6')
prepare() {
cd libpng-${pkgver}
patch -Np0 -i ../libpng-${pkgver}-apng.patch
libtoolize --force --copy
aclocal
autoconf
automake --add-missing
}
build() {
cd libpng-${pkgver}
./configure \
--prefix='/usr'
make
}
package() {
cd libpng-${pkgver}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/share"
rm -rf "${pkgdir}/usr/bin/libpng-config"
rm -rf "${pkgdir}/usr/lib/"{libpng.so,libpng.a}
rm -fr "${pkgdir}/usr/lib/pkgconfig/libpng.pc"
rm -rf "${pkgdir}/usr/include/"{pngconf.h,png.h}
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/libpng12/
}
# vim: ts=2 sw=2 et:
I also needed to install additional packages
pacman -S gtest perl-perl4-corelibs
But in the end there was still some error:
kernel/qpngio.cpp: In function 'void qt_zlib_compression_hack()':
kernel/qpngio.cpp:1238:5: error: 'compress' was not declared in this scope
compress(0,0,0,0);
^~~~~~~~
kernel/qpngio.cpp:1238:5: note: suggested alternative: 'qCompress'
compress(0,0,0,0);
^~~~~~~~
qCompress
kernel/qpngio.cpp:1239:5: error: 'uncompress' was not declared in this scope
uncompress(0,0,0,0);
^~~~~~~~~~
kernel/qpngio.cpp:1239:5: note: suggested alternative: 'qUncompress'
uncompress(0,0,0,0);
^~~~~~~~~~
qUncompress
make[1]: *** [Makefile:13515: .obj/release-shared-mt/qpngio.o] Error 1
make[1]: Leaving directory '/home/juraj/Projects/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/third_party/qt/qt-x11-free-3.3.8b/src'
make: *** [Makefile:40: sub-src] Error 2
scons: *** Error 2
scons: *** [NATIVE-REL-x86_64/third_party/qt/.build] Error 2
scons: building terminated because of errors.
scons: *** [build] Error 2
scons: building terminated because of errors.
I think it needs to be patched or fixed in upstream.