1 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=sqlantaresia-git
6 pkgdesc="SQL Antaresia is a MySQL administrative tool aimed at developers and sysadmins"
8 url="https://github.com/mtorromeo/sqlantaresia"
10 depends=('python2-qt' 'python2-setproctitle' 'mysql-python' 'python2-dbutils' 'python2-qscintilla')
11 makedepends=('python2-distribute' 'git')
12 optdepends=('python-paramiko: for automatic ssh tunnelling' 'pycrypto: for automatic ssh tunnelling')
13 source=(sqlantaresia.desktop)
15 _gitroot="git://github.com/mtorromeo/sqlantaresia.git"
16 _gitname="sqlantaresia"
21 msg "Connecting to GIT server...."
23 if [ -d $srcdir/$_gitname ]; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone --depth=0 $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
32 rm -rf "$srcdir/$_gitname-build"
33 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build/"
35 rm -rf .git .gitmodules
36 find . -type f -name .gitignore -delete
39 python2 setup.py install --root="$pkgdir"
40 install -m0644 -D "$srcdir/sqlantaresia.desktop" "$pkgdir/usr/share/applications/sqlantaresia.desktop"
41 install -D LICENSE "$pkgdir/usr/share/licenses/sqlantaresia/COPYING"
44 md5sums=('2d85132c362462e0a628e345ae48710e')