aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-11-27 20:07:32 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2012-11-27 20:07:32 -0600
commit857c571533de4f021e54a588ae55bc71b0ca71f4 (patch)
tree0b9544e968df7399676c81d2463dbbb3064739bb
parent3701518bc72015b305b020c0cc5c73a0a726ae51 (diff)
downloadaports-857c571533de4f021e54a588ae55bc71b0ca71f4.tar.bz2
aports-857c571533de4f021e54a588ae55bc71b0ca71f4.tar.xz
testing/py-mysqldb: pkgrel bump; modernize APKBUILD syntax
-rw-r--r--testing/py-mysqldb/APKBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/testing/py-mysqldb/APKBUILD b/testing/py-mysqldb/APKBUILD
index cf990a1aaf..e509fcc872 100644
--- a/testing/py-mysqldb/APKBUILD
+++ b/testing/py-mysqldb/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-mysqldb
pkgver=1.2.3
-pkgrel=0
+pkgrel=1
pkgdesc="MySQL Module for python"
url="http://sourceforge.net/projects/mysql-python/"
arch="all"
@@ -9,11 +9,17 @@ license="GPL"
depends="python"
makedepends="py-setuptools mysql-dev"
source="http://downloads.sourceforge.net/mysql-python/MySQL-python-${pkgver}.tar.gz"
+
+_builddir="$srcdir"/MySQL-python-$pkgver
+
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
+ cd "$_builddir"
+ python setup.py build || return 1
}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root="$pkgdir" || return 1
+}
+
md5sums="215eddb6d853f6f4be5b4afc4154292f MySQL-python-1.2.3.tar.gz"