summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 951cef018b8b3ca4a63357ea988ec392d5b598d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Kozec <kozec.at.kozec.dot.com>

pkgname=python-sqlparse-git
pkgver=0.3.0.22.g338914c
pkgrel=1
pkgdesc="Non-validating SQL parser for Python. Git version"
arch=(i686 x86_64)
url="https://github.com/andialbrecht/sqlparse"
license=('BSD')
depends=('python' 'python-setuptools')
source=("git+https://github.com/andialbrecht/sqlparse.git")

provides=('python-sqlparse')
conflicts=('python-sqlparse')
replaces=('python-sqlparse')
sha256sums=('SKIP')

pkgver() {
    cd sqlparse
    git describe | sed 's/^v//;s/-/./g;s/_/./g;'
}

package() {
  cd $srcdir/sqlparse
  python setup.py install --root=$pkgdir/ --optimize=1 || return 1
}