summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6136faf4f6661ed68243313bac658e9e6824a62f (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
29
30
31
32
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=python-sqlalchemy-git
pkgver=1.1.6.134.g2869b86ea
pkgrel=1
pkgdesc="Python SQL toolkit and Object Relational Mapper"
arch=('i686' 'x86_64')
url="http://www.sqlalchemy.org"
license=('custom:MIT')
depends=('python')
makedepends=('git' 'python-setuptools')
provides=("python-sqlalchemy=$pkgver")
conflicts=('python-sqlalchemy')
source=("git+https://bitbucket.org/zzzeek/sqlalchemy.git")
md5sums=('SKIP')
_gitname="sqlalchemy"

pkgver() {
 cd $srcdir/$_gitname
 git describe --tags | sed 's|[_-]|.|g'| cut -c5-
}

build() {
  cd "$srcdir/$_gitname"
  python setup.py build
}

package() {
  cd "$srcdir/$_gitname"
  python setup.py install --root="$pkgdir"
  install -D -m644 LICENSE \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}