* Fix wrong Java version * Fix inconsistency between name of libpng and its soname
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
|
|
# Contributor: Daniel Kirchner <daniel AT ekpyron DOT org>
|
|
|
|
_android_arch=aarch64
|
|
|
|
pkgname=android-${_android_arch}-libpng
|
|
pkgver=1.6.39
|
|
pkgrel=2
|
|
pkgdesc="A collection of routines used to create PNG format graphics (android)"
|
|
arch=('any')
|
|
url="http://www.libpng.org/pub/png/libpng.html"
|
|
license=('custom')
|
|
depends=("android-${_android_arch}-zlib")
|
|
options=(!strip !buildflags staticlibs !emptydirs)
|
|
makedepends=('android-configure')
|
|
source=("http://downloads.sourceforge.net/sourceforge/libpng/libpng-$pkgver.tar.xz")
|
|
sha256sums=('1f4696ce70b4ee5f85f1e1623dc1229b210029fa4b7aee573df3e2ba7b036937')
|
|
|
|
build() {
|
|
cd "$srcdir/libpng-$pkgver"
|
|
source android-env ${_android_arch}
|
|
|
|
android-${_android_arch}-configure \
|
|
--enable-unversioned-links \
|
|
--enable-unversioned-libpng-pc\
|
|
--enable-unversioned-libpng-config \
|
|
--enable-hardware-optimizations
|
|
|
|
make $MAKEFLAGS
|
|
}
|
|
|
|
package () {
|
|
cd "${srcdir}/libpng-${pkgver}"
|
|
source android-env ${_android_arch}
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
rm -r "${pkgdir}"/${ANDROID_PREFIX_SHARE}
|
|
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
|
|
${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
|
|
}
|