1 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
2 # Maintainer: Nathan Owe <ndowens04+AUR @ gmail.com>
6 pkgdesc="A feature rich image viewer including a GUI"
7 url="http://imgv.sourceforge.net/"
10 depends=('bash' 'python-pygame' 'pil')
13 source=(http://downloads.sourceforge.net/imgv/$pkgname-$pkgver-src.tar.gz imgv.diff imgv.profile imgv.sh)
14 md5sums=('42378425b2470daedcc0f3e34c25b6e0' 'ef78916636a26b84c1bd55c430146bdc'\
15 'bd0daba52c3165b38ba5a7b61ec0a94d' '60a287e055f6b17ba864c207cb78d9b2')
18 cd $srcdir/$pkgname-$pkgver-src
19 install -d $pkgdir/usr/share/imgv
20 dos2unix *.py data/{imgv.conf,playlists}
21 patch -p1 <$srcdir/imgv.diff
22 cp -r * $pkgdir/usr/share/imgv/
23 install -Dm755 $srcdir/imgv.profile $pkgdir/etc/profile.d/imgv.sh
24 install -Dm755 $srcdir/imgv.sh $pkgdir/usr/bin/imgv
25 sed -i 's|COLOR|#COLOR|g' $pkgdir/usr/share/imgv/data/imgv.conf
26 sed -i 's|CACHE_DIRS|#CACHE_DIRS|g' $pkgdir/usr/share/imgv/gl.py