updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / pmt / PKGBUILD
bloba962d58199b31126f971db7041e88ed95acd4a76
1 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Former Maintainer: damir <damir@archlinux.org>
4 pkgname=pmt
5 pkgver=2009.07.18
6 _pngmetaver=1.11
7 _bmp2pngver=1.62
8 pkgrel=2
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/
13 license=('custom')
14 depends=('libpng')
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')
26 build() {
28   cd "$srcdir"/pngmeta-${_pngmetaver}
29     patch -Np1 < "$srcdir"/pngmeta-1.11-libpng_fixes.diff
30     ./configure --prefix=/usr --mandir=/usr/share/man
31     make 
32     make DESTDIR="$pkgdir" install
34   cd "$srcdir"/bmp2png-${_bmp2pngver}
35     patch -Np1 < "$srcdir"/bmp2png-1.62-libpng_fixes.diff
36     make BINDIR=/usr/bin
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