mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
added new app: lib32-libpng12
This commit is contained in:
parent
f934e03558
commit
38c5e21bbd
52
lib32-libpng12/PKGBUILD
Normal file
52
lib32-libpng12/PKGBUILD
Normal file
@ -0,0 +1,52 @@
|
||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||
|
||||
_pkgbasename=libpng
|
||||
pkgname=lib32-libpng12
|
||||
pkgver=1.2.44
|
||||
pkgrel=1
|
||||
pkgdesc="A collection of routines used to create PNG format graphics files (32-bit)"
|
||||
arch=('x86_64')
|
||||
url="http://www.libpng.org/pub/png/libpng.html"
|
||||
license=('custom')
|
||||
depends=('lib32-zlib')
|
||||
makedepends=('gcc-multilib')
|
||||
options=('!libtool')
|
||||
source=("http://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2"
|
||||
"http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-${pkgver}-apng.patch.gz")
|
||||
md5sums=('e3ac7879d62ad166a6f0c7441390d12b'
|
||||
'6f114b5a6e9376ea8b391e04c9fb1413')
|
||||
|
||||
build() {
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
|
||||
# Add animated PNG (apng) support
|
||||
# see http://sourceforge.net/projects/libpng-apng/
|
||||
patch -Np1 -i "${srcdir}/libpng-${pkgver}-apng.patch"
|
||||
|
||||
libtoolize --force --copy
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing
|
||||
|
||||
./configure --prefix=/usr --libdir=/usr/lib32
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
rm -f ${pkgdir}/usr/lib32/{libpng.so,libpng.a,pkgconfig/libpng.pc}
|
||||
rm -rf ${pkgdir}/usr/{include,share,bin}
|
||||
|
||||
mkdir -p "${pkgdir}/usr/share/licenses"
|
||||
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user