# Contributor: Carlo Landmeter # Maintainer: pkgname=libpng pkgver=1.6.36 pkgrel=0 pkgdesc="Portable Network Graphics library" url="http://www.libpng.org/" arch="all" license="Libpng" depends="" depends_dev="" makedepends="autoconf automake libtool zlib-dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-utils" source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz https://downloads.sourceforge.net/sourceforge/$pkgname-apng/$pkgname-$pkgver-apng.patch.gz libpng-fix-arm-neon.patch " prepare() { cd "$builddir" gunzip -c "$srcdir"/$pkgname-$pkgver-apng.patch.gz | patch -p1 default_prepare # libpng-fix-arm-neon.patch modifies configure.ac autoreconf -vif } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE rm -f "$pkgdir"/usr/lib/*.la } utils() { pkgdesc="$pkgdesc (pngfix utils)" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr } sha512sums="8b9c54c5555d6a736eaf298cbbae1e08199001202bacabc6212d75fa619e2ecf06bcf36db0321bfdb90a3dc5cde361c8d951002701637a557c34eae80f5d0936 libpng-1.6.36.tar.gz 8fa213204768b058459ffd5eae6b3661c3f185d3baf1913da4337e7b7855e567f2525e7f67411c32fa8cb177a5f93d538c3d0ce17a94d4aa71bd9cffabe8b311 libpng-1.6.36-apng.patch.gz e3fae918f14bc34e7c126892f69527c6e1b4d72593835ece839d9a28cff55a886b2030f877cf9e29b2c97abf2e47bbb5ba54584828edd2a841c2556f330b9c7e libpng-fix-arm-neon.patch"