aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-04-21 17:06:35 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-04-21 17:06:35 +0200
commitdf096e3489a762507b4a9ee010aba1cf3b966743 (patch)
tree823089c9238956aeab06b0d16d77cde086af5ebc /testing
parent3eab3a04e634b5f3ca9f4c8fa4863150f1774bb7 (diff)
downloadaports-df096e3489a762507b4a9ee010aba1cf3b966743.tar.bz2
aports-df096e3489a762507b4a9ee010aba1cf3b966743.tar.xz
testing/py-mysqldb: upgrade to 1.2.5
new upstream
Diffstat (limited to 'testing')
-rw-r--r--testing/py-mysqldb/APKBUILD38
1 files changed, 26 insertions, 12 deletions
diff --git a/testing/py-mysqldb/APKBUILD b/testing/py-mysqldb/APKBUILD
index 5b151a176e..4f59a80b95 100644
--- a/testing/py-mysqldb/APKBUILD
+++ b/testing/py-mysqldb/APKBUILD
@@ -1,17 +1,31 @@
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-mysqldb
-pkgver=1.2.3
-pkgrel=3
-pkgdesc="MySQL Module for python"
-url="http://sourceforge.net/projects/mysql-python/"
+pkgver=1.2.5
+pkgrel=0
+pkgdesc="MySQL database connector for Python (legacy version)"
+url="https://github.com/farcepest/MySQLdb1"
arch="all"
-license="GPL2+"
-depends=""
-makedepends="python-dev py-setuptools mariadb-dev"
-source="http://downloads.sourceforge.net/mysql-python/MySQL-python-${pkgver}.tar.gz"
+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
@@ -19,9 +33,9 @@ build() {
package() {
cd "$_builddir"
- python setup.py install --root="$pkgdir" || return 1
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
-md5sums="215eddb6d853f6f4be5b4afc4154292f MySQL-python-1.2.3.tar.gz"
-sha256sums="7de66fbbf923634e7c965aeaefa74642ba75ae20ee1cefcefc3009595b7a7e6e MySQL-python-1.2.3.tar.gz"
-sha512sums="8c1c88ccf833744ac1f78673cb306cafe7f9bfc85ab2ce6dee1024b86571c17f006e3ab8452dba3527976f39aca64757b2d961c30ef4ac61c9a27e60a5f1abf5 MySQL-python-1.2.3.tar.gz"
+md5sums="654f75b302db6ed8dc5a898c625e030c MySQL-python-1.2.5.zip"
+sha256sums="811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74 MySQL-python-1.2.5.zip"
+sha512sums="37521c6fd855c4cde495cc8ec085aca79c2d441a6e3710759385bf2e2c17f43d3311cf1166663892829d2e3999c419443c358c7031cdda225ac44611ced188d0 MySQL-python-1.2.5.zip"