PKGBUILD 662 Bytes
Newer Older
1
pkgname=optipng
Jeff Huang's avatar
Jeff Huang committed
2 3
pkgver=0.7.6
pkgrel=1
4 5 6 7 8 9
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")
Jeff Huang's avatar
Jeff Huang committed
10
sha256sums=('4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80')
11 12 13 14 15 16 17 18 19 20 21 22

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" 
}