aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-mysqldb
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-03-23 11:12:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-23 11:12:30 +0000
commit3e798f2bb426b051c4f7b9346559513d65bbdd87 (patch)
tree51ac69426ac0a31ed57cb2ab7eb057b5d7a0b97f /community/py-mysqldb
parent8b2522dd15f39d754ff05705a72ee4c489f05fe8 (diff)
downloadaports-3e798f2bb426b051c4f7b9346559513d65bbdd87.tar.bz2
aports-3e798f2bb426b051c4f7b9346559513d65bbdd87.tar.xz
community/py-mysqldb: move from main
only needed by community/patchwork
Diffstat (limited to 'community/py-mysqldb')
-rw-r--r--community/py-mysqldb/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/py-mysqldb/APKBUILD b/community/py-mysqldb/APKBUILD
new file mode 100644
index 0000000000..d4cdbc00c0
--- /dev/null
+++ b/community/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="python2"
+depends_dev="mariadb-dev"
+makedepends="$depends_dev python2-dev py-setuptools"
+install=""
+subpackages=""
+source="https://files.pythonhosted.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"
+ python2 setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python2 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"