aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/py-sphinxcontrib-ansi/APKBUILD17
1 files changed, 4 insertions, 13 deletions
diff --git a/testing/py-sphinxcontrib-ansi/APKBUILD b/testing/py-sphinxcontrib-ansi/APKBUILD
index 4fee74a94f..bb7fef4204 100644
--- a/testing/py-sphinxcontrib-ansi/APKBUILD
+++ b/testing/py-sphinxcontrib-ansi/APKBUILD
@@ -13,26 +13,17 @@ depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+source="http://pypi.python.org/packages/source/s/sphinxcontrib-ansi/sphinxcontrib-ansi-$pkgver.tar.gz"
-_builddir="$srcdir"/$_pkgname-$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
-}
+builddir="$srcdir"/sphinxcontrib-ansi-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
python setup.py build || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}