updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / sqlalchemy-console-hg / PKGBUILD
blob97e1f31ccd3b033176d0aec4b934a0e7e05a6760
1 # Contributor: DasIch <dasdasich@googlemail.com>
3 pkgname=sqlalchemy-console-hg
4 pkgver=21
5 pkgrel=2
6 pkgdesc="Interactive database command line using sqlalchemy"
7 arch=('any')
8 license=('AGPL')
9 url="http://codeflow.org/#sqlac"
10 makedepends=('mercurial')
11 depends=('python' 'python-sqlalchemy' 'setuptools')
12 source=()
13 conflicts=('sqlalchemy-console' 'sqlalchemy-console-hg')
14 replaces=('sqlalchemy-console' 'sqlalchemy-console-hg')
15 md5sums=()
17 _hgroot="http://hg.codeflow.org"
18 _hgrepo="sqlalchemy_console"
20 build() {
21         cd ${srcdir}
22         if [ -d ${_hgrepo}/.hg ]; then
23                 cd ${_hgrepo}
24                 hg pull -u
25         else
26                 echo ${_hgroot}/${_hgrepo}
27                 hg clone ${_hgroot}/${_hgrepo}
28                 cd ${_hgrepo}
29         fi
30         python setup.py install --root=$startdir/pkg
31         install -D -m644 LICENSE $pkgdir/usr/share/licenses/sqlalchemy_console/LICENSE
32         install -D -m644 agpl-3.0.txt $pkgdir/usr/share/licenses/sqlalchemy_console/agpl-3.0.txt