blob: b22bee4ec2c63ab0b3733eb4bc7a806a12324b59 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=('python-sqlalchemy-git' 'python2-sqlalchemy-git')
pkgver=1.4.0b1.rc13273.91e14cc42
pkgrel=1
pkgdesc="Python SQL toolkit and Object Relational Mapper"
arch=('i686' 'x86_64')
url="http://www.sqlalchemy.org"
license=('custom:MIT')
makedepends=('git' 'python' 'python2' 'python-setuptools' 'python2-setuptools')
source=("git+https://github.com/sqlalchemy/sqlalchemy.git")
md5sums=('SKIP')
pkgver() {
cd sqlalchemy
printf %s.rc%s.%s "$(awk '/\:version\:/ {print $2}' doc/build/changelog/changelog_*|sort|tail -1)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cp -r sqlalchemy sqlalchemy2
}
build() {
cd sqlalchemy
python setup.py build
cd "$srcdir"/sqlalchemy2
python2 setup.py build
}
package_python-sqlalchemy-git() {
provides=("python-sqlalchemy=$pkgver")
conflicts=('python-sqlalchemy')
depends=('python')
cd sqlalchemy
python setup.py install --root="$pkgdir"
install -D -m644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-sqlalchemy-git() {
provides=("python2-sqlalchemy=$pkgver")
conflicts=('python2-sqlalchemy')
depends=('python2')
cd sqlalchemy2
python2 setup.py install --root="$pkgdir"
install -D -m644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|