updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / pysqlitegui / PKGBUILD
blobf3cd058285883b1d3be83e1f6ae7116ca3f21ef3
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Manuel "ekerazha" C. (www.ekerazha.com)
4 pkgname=pysqlitegui
5 pkgver=0.0.8RC0
6 pkgrel=3
7 pkgdesc="A GUI tool for creating and managing SQLite databases"
8 arch=('any')
9 url="http://pysqlitegui.ospdev.net/"
10 license=('GPL')
11 depends=('pygtk' 'python-pysqlite' 'python-pysqlite-legacy')
12 source=(http://mirror.lfeo.ir/$pkgname/$pkgname/$pkgver/pySQLiteGUI-$pkgver.tar.bz2
13         $pkgname.desktop
14         $pkgname.png)
15 md5sums=('ee1410da30b4bf9f9994bed4373c184d'
16          '33c1f15e6b30ba1be6f00f152a1b0364'
17          'a8881ff3bb1bce90035ee4d7c557e78e')
19 build() {
20   cd "$srcdir"/pySQLiteGUI/src
22   # fix data path
23   sed -i "s,psqlitegui.glade,/usr/share/$pkgname/psqlitegui.glade,g" $pkgname.py
25   # install script
26   install -Dm755 $pkgname.py "$pkgdir"/usr/bin/$pkgname
28   # install data
29   install -Dm644 psqlitegui.glade "$pkgdir"/usr/share/$pkgname/psqlitegui.glade
30   install -Dm644 psqlitegui.gladep "$pkgdir"/usr/share/$pkgname/psqlitegui.gladep
32   # install desktop file and icon
33   install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
34   install -Dm644 "$srcdir"/$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png