desktop/optipng/PKGBUILD

28 lines
899 B
Bash

# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
# Original maintainer on CCR: george <rpubaddr0 {at} gmail [dot] com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>
pkgname=optipng
pkgver=0.7.5
pkgrel=2
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=('74e54b798b012dff8993fb8d90185ca83f18cfa4935f4a93b0bcfc33c849619d')
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"
}