desktop/optipng/PKGBUILD

23 lines
662 B
Bash
Raw Normal View History

pkgname=optipng
2016-04-10 08:12:47 +08:00
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")
2016-04-10 08:12:47 +08:00
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"
}