# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=python-mysqlclient
_libname=${pkgname/python-/}
pkgver=2.1.1
pkgrel=2
pkgdesc="Fork of MySQL-python with support for Python 3"
arch=('x86_64' 'aarch64')
url="https://github.com/PyMySQL/mysqlclient-python"
license=('GPL')
depends=('python' 'mariadb-libs')
makedepends=('mariadb' '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=('828757e419fb11dd6c5ed2576ec92c3efaa93a0f7c39e263586d1ee779c3d782')
