summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65b1322b07215e7bf8d3f48da7764f9c35fbd7d2 (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
pkgname=python-mariadb-connector-git
pkgver=r180.f66e185
pkgrel=1
pkgdesc="A Python DB API 2.0 compliant API for access to MariaDB and MySQL databases"
provides=('python-mariadb-connector')
arch=('any')
url="https://mariadb.com/kb/en/mariadb-connector-python/"
license=('LGPL')
depends=('python' 'mariadb-connector-c')
makedepends=('git' 'python-setuptools')
source=('git://github.com/mariadb-corporation/mariadb-connector-python.git')
sha512sums=('SKIP')

pkgver() {
	cd "${srcdir}/mariadb-connector-python"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/mariadb-connector-python"
	python setup.py build
}

package() {
	cd "${srcdir}/mariadb-connector-python"
	python setup.py install --root=${pkgdir} --optimize=1
}