diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-09-25 22:34:31 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-09-25 22:34:31 +0300 |
commit | a63e761952d9dcfb6b26f8adfecce7b7c60dc4e5 (patch) | |
tree | 4cdd653f03a1b76fe1d7dcd75b2d49ceb8704f6b /main/py-mysqldb | |
parent | c82a247edac48adfda9f721a5d6f8c3525ba8fd8 (diff) | |
download | aports-a63e761952d9dcfb6b26f8adfecce7b7c60dc4e5.tar.bz2 aports-a63e761952d9dcfb6b26f8adfecce7b7c60dc4e5.tar.xz |
main/py-mysqldb: moved from testing
Diffstat (limited to 'main/py-mysqldb')
-rw-r--r-- | main/py-mysqldb/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/py-mysqldb/APKBUILD b/main/py-mysqldb/APKBUILD new file mode 100644 index 0000000000..4f59a80b95 --- /dev/null +++ b/main/py-mysqldb/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Ćukasz Jendrysik <scadu@yandex.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=py-mysqldb +pkgver=1.2.5 +pkgrel=0 +pkgdesc="MySQL database connector for Python (legacy version)" +url="https://github.com/farcepest/MySQLdb1" +arch="all" +license="GPL" +depends="python" +depends_dev="mariadb-dev" +makedepends="$depends_dev python-dev py-setuptools" +install="" +subpackages="" +source="https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-$pkgver.zip" + +_builddir="$srcdir"/MySQL-python-$pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="654f75b302db6ed8dc5a898c625e030c MySQL-python-1.2.5.zip" +sha256sums="811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74 MySQL-python-1.2.5.zip" +sha512sums="37521c6fd855c4cde495cc8ec085aca79c2d441a6e3710759385bf2e2c17f43d3311cf1166663892829d2e3999c419443c358c7031cdda225ac44611ced188d0 MySQL-python-1.2.5.zip" |