diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 12 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = pngcheck pkgdesc = Verifies the integrity of PNG, JNG and MNG files by checking the CRCs and decompressing the image data pkgver = 2.3.0 - pkgrel = 1 + pkgrel = 2 url = http://www.libpng.org/pub/png/apps/pngcheck.html arch = i686 arch = x86_64 @@ -2,7 +2,7 @@ # Maintainer: Rudy Matela <rudy@matela.com.br> pkgname=pngcheck pkgver=2.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="Verifies the integrity of PNG, JNG and MNG files by checking the CRCs and decompressing the image data" arch=('i686' 'x86_64') url="http://www.libpng.org/pub/png/apps/pngcheck.html" @@ -13,18 +13,20 @@ source=("http://sourceforge.net/projects/png-mng/files/$pkgname/$pkgver/$pkgname 'makefile.patch') md5sums=('980bd6d9a3830fdce746d7fe3c9166ee' 'bd6f2e05f4914e9e271e3b844b489c40') +prepare() { + cd $srcdir/$pkgname-$pkgver + cp Makefile.unx Makefile + patch -p0 < $srcdir/makefile.patch +} + build() { cd $srcdir/$pkgname-$pkgver - cp Makefile.unx Makefile || return 1 - patch -p0 < $srcdir/makefile.patch || return 1 - make || return 1 - return 0 + make } package() { cd $srcdir/$pkgname-$pkgver - install -Dm755 pngcheck $pkgdir/usr/bin/pngcheck || return 1 - install -Dm755 pngsplit $pkgdir/usr/bin/pngsplit || return 1 - install -Dm755 png-fix-IDAT-windowsize $pkgdir/usr/bin/png-fix-IDAT-windowsize || return 1 - return 0 + install -Dm755 pngcheck $pkgdir/usr/bin/pngcheck + install -Dm755 pngsplit $pkgdir/usr/bin/pngsplit + install -Dm755 png-fix-IDAT-windowsize $pkgdir/usr/bin/png-fix-IDAT-windowsize } |