void-packages/srcpkgs/libpng/template
2017-08-25 06:00:02 +02:00

40 lines
1,009 B
Bash

# Template build file for 'libpng'.
pkgname=libpng
version=1.6.32
revision=1
build_style=gnu-configure
makedepends="zlib-devel"
short_desc="Library for manipulating PNG images"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.libpng.org/pub/png/libpng.html"
license="libpng"
distfiles="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-${version}.tar.xz"
checksum=c918c3113de74a692f0a1526ce881dc26067763eb3915c57ef3a0f7b6886f59b
case "$XBPS_TARGET_MACHINE" in
arm*|aarch64*) configure_args="--enable-arm-neon=no";;
esac
post_install() {
rm -f ${DESTDIR}/usr/lib/*.la
vlicense LICENSE
}
libpng-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/bin/libpng*-config"
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}
libpng-progs_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
}
}