void-packages/srcpkgs/libpng/template
2015-03-27 07:21:52 +01:00

36 lines
908 B
Bash

# Template build file for 'libpng'.
pkgname=libpng
version=1.6.17
revision=1
build_style=gnu-configure
makedepends="zlib-devel"
short_desc="Library for manipulating PNG images"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.libpng.org/pub/png/libpng.html"
license="zlib"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=98507b55fbe5cd43c51981f2924e4671fd81fe35d52dc53357e20f2c77fa5dfd
post_install() {
rm -f ${DESTDIR}/usr/lib/*.la
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}
libpng-devel_package() {
depends="zlib-devel libpng>=${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
}
}