updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / galleryforge / PKGBUILD
blobd577c98b0bb3c58e23959d6f8149a935c4502ebf
1 # Contributor: Tim Yang <tdy@gmx.com>
2 pkgname=galleryforge
3 pkgver=1.1.5
4 pkgrel=2
5 pkgdesc="A utility for generating and maintaining a personal photo album gallery"
6 arch=('i686' 'x86_64')
7 url="http://galleryforge.berlios.de/"
8 license=('GPL')
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
12         $pkgname.desktop)
13 md5sums=('3001ba572354469ad2239e20827b8c0b'
14          '8cfec5344d1fa09886ca4b018b9d6f63')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
18   python install.py "$pkgdir" || return 1
19   install -Dm644 doc/README "$pkgdir/usr/share/doc/$pkgname/README"
21   msg2 "Bin links..."
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}