summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-mysqlclient/PKGBUILD
blob: 8b49ff41b3db50b1d6741e5b45e7fa34573f2f8f (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
# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=python-mysqlclient
_libname=${pkgname/python-/}
pkgver=2.0.1
pkgrel=1
pkgdesc="Fork of MySQL-python with support for Python 3"
arch=('x86_64')
url="https://github.com/PyMySQL/mysqlclient-python"
license=('GPL')
depends=('python' 'libmysqlclient')
makedepends=('mysql' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz")

build() {
    cd "$srcdir"/$_libname-$pkgver
    python setup.py build
}

package() {
    cd "$srcdir"/$_libname-$pkgver
    python setup.py install -O1 --skip-build --root="$pkgdir"
}

sha256sums=('fb2f75aea14722390d2d8ddf384ad99da708c707a96656210a7be8af20a2c5e5')