updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / imgv / PKGBUILD
blob885e1d317d54c7df1746675634479067e72dbab2
1 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
2 # Maintainer: Nathan Owe <ndowens04+AUR @ gmail.com>
3 pkgname=imgv
4 pkgver=3.1.5
5 pkgrel=2
6 pkgdesc="A feature rich image viewer including a GUI"
7 url="http://imgv.sourceforge.net/"
8 license=('GPL')
9 arch=('i686')
10 depends=('bash' 'python-pygame' 'pil')
11 makedepends=('hd2u')
12 install=imgv.install
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')
17 build() {
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