1 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Former Maintainer: damir <damir@archlinux.org>
9 pkgdesc="PNG and MNG tools"
10 arch=('i686' 'x86_64')
11 url="http://pmt.sourceforge.net/"
12 #bmp2png: http://cetus.sakura.ne.jp/softlab/b2p-home/
15 source=(http://downloads.sourceforge.net/sourceforge/pmt/pngmeta-${_pngmetaver}.tar.gz \
16 http://cetus.sakura.ne.jp/softlab/b2p-home/archives/bmp2png-${_bmp2pngver}.tar.gz \
17 LICENSE-pngmeta LICENSE-bmp2png \
18 pngmeta-1.11-libpng_fixes.diff bmp2png-1.62-libpng_fixes.diff)
19 md5sums=('5d495f7668f7ccc64a1576c8cfd15506'
20 '29562be8cb5300ecf0361904abff54dd'
21 '84f94275e10bd5d6b9833b8ce6907e78'
22 '689f14faf70cec4940b3106c4c65d610'
23 'a9178000d0a29aabf5e041e83149e793'
24 'ba86b1e14f75491c04a1b9a7719506df')
28 cd "$srcdir"/pngmeta-${_pngmetaver}
29 patch -Np1 < "$srcdir"/pngmeta-1.11-libpng_fixes.diff
30 ./configure --prefix=/usr --mandir=/usr/share/man
32 make DESTDIR="$pkgdir" install
34 cd "$srcdir"/bmp2png-${_bmp2pngver}
35 patch -Np1 < "$srcdir"/bmp2png-1.62-libpng_fixes.diff
37 make BINDIR="$pkgdir"/usr/bin install
39 install -D -m644 "$srcdir"/LICENSE-pngmeta "$pkgdir"/usr/share/licenses/$pkgname/pngmeta
40 install -D -m644 "$srcdir"/LICENSE-bmp2png "$pkgdir"/usr/share/licenses/$pkgname/bmp2png