1 # Contributor: Tim Yang <tdy@gmx.com>
5 pkgdesc="A utility for generating and maintaining a personal photo album gallery"
7 url="http://galleryforge.berlios.de/"
9 depends=('pil>=1.1.4' 'wxpython>=2.6.0')
10 install=$pkgname.install
11 source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
13 md5sums=('3001ba572354469ad2239e20827b8c0b'
14 '8cfec5344d1fa09886ca4b018b9d6f63')
17 cd "$srcdir/$pkgname-$pkgver"
18 python install.py "$pkgdir" || return 1
19 install -Dm644 doc/README "$pkgdir/usr/share/doc/$pkgname/README"
22 install -dm755 "$pkgdir/usr/bin"
23 ln -sf /opt/$pkgname/bin/$pkgname.py "$pkgdir/usr/bin/$pkgname"
24 ln -sf /opt/$pkgname/bin/$pkgname-gui.py "$pkgdir/usr/bin/$pkgname-gui"
26 msg2 "Desktop entry..."
27 install -dm755 "$pkgdir/usr/share/pixmaps"
28 ln -sf /opt/$pkgname/$pkgname/gui/${pkgname}_logo.png \
29 "$pkgdir/usr/share/pixmaps/$pkgname.png"
30 install -Dm644 ../*.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
32 rm -rf "$pkgdir/opt"/{bin,$pkgname/doc}