aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-mysqldb/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-21 13:35:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-21 13:35:11 +0000
commit5f3e19c1bca037bbc4448fbe2135831cbbd7f2a6 (patch)
treec73e992bfc751a1b506f83a7cbc1f752adb48fb1 /testing/py-mysqldb/APKBUILD
parent31058fea3fe4109c6222fc00e60f4541086e4680 (diff)
downloadaports-5f3e19c1bca037bbc4448fbe2135831cbbd7f2a6.tar.bz2
aports-5f3e19c1bca037bbc4448fbe2135831cbbd7f2a6.tar.xz
testing/py-mysqldb: renamed from python-mysqldb
Diffstat (limited to 'testing/py-mysqldb/APKBUILD')
-rw-r--r--testing/py-mysqldb/APKBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/py-mysqldb/APKBUILD b/testing/py-mysqldb/APKBUILD
new file mode 100644
index 0000000000..a4486a4e81
--- /dev/null
+++ b/testing/py-mysqldb/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=py-mysqldb
+pkgver=1.2.3c1
+pkgrel=0
+pkgdesc="MySQL Module for python"
+url="http://sourceforge.net/projects/mysql-python/"
+license="GPL"
+depends="python libmysqlclient"
+makedepends="py-setuptools mysql-dev"
+source="http://downloads.sourceforge.net/mysql-python/MySQL-python-${pkgver}.tar.gz"
+
+build() {
+ cd "$srcdir"/MySQL-python-$pkgver
+
+ mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
+
+ python setup.py install --root="$pkgdir"
+
+ echo "/usr/lib/python2.6/site-packages/$pkgname-$pkgver-py2.6.egg" \
+ > "$pkgdir"/usr/lib/python2.6/site-packages/$pkgname.pth
+}
+
+md5sums="310dd856e439d070b59ece6dd7a0734d MySQL-python-1.2.3c1.tar.gz"