blob: fa21f35ddd1163cae706af9dd58f793d91304167 (
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
|
# Maintainer: Angel Angelov <hextwoa@gmail.com>
pkgname='python-records-git'
pkgver=229.4038d9d
pkgrel=1
pkgdesc="A library for making raw SQL queries to relational databases."
url="https://github.com/kennethreitz/records"
license=('MIT')
makedepends=('git' 'python-distribute')
depends=('python' 'python-requests' 'python-tablib' 'python-docopt' 'python-sqlalchemy')
provides=('python-records')
arch=('any')
source=("git+${url}.git")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/records"
local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
printf "%s" "${ver//-/.}"
}
build() {
cd "${srcdir}/records"
python3 setup.py build
}
package() {
cd "${srcdir}/records"
python3 setup.py install --root="$pkgdir/" --optimize=1
}
|