pkgname=optipng pkgver=0.7.6 pkgrel=1 pkgdesc='A PNG optimizer that losslessly recompresses image files.' arch=('x86_64') url='http://optipng.sourceforge.net/' license=('ZLIB') depends=('glibc') source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz") sha256sums=('4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make prefix="${pkgdir}/usr" mandir="${pkgdir}/usr/share/man" install install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }