From 94a863e24043689d36f2d2d63efc22ace1c9cbb9 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Fri, 22 Mar 2013 15:50:37 +0000 Subject: testing/py-numpy: fixes #1708 --- testing/py-numpy/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 testing/py-numpy/APKBUILD (limited to 'testing') diff --git a/testing/py-numpy/APKBUILD b/testing/py-numpy/APKBUILD new file mode 100644 index 0000000000..86f1bf636a --- /dev/null +++ b/testing/py-numpy/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=py-numpy +_pkgname=numpy +pkgver=1.7.0 +pkgrel=0 +pkgdesc="Scientific tools for Python" +url="http://numpy.scipy.org/" +arch="all" +license="custom" +depends="" +depends_dev="python-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$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 +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 + install -m755 -d "$pkgdir"/usr/share/licenses/custom/$pkgname + install -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE +} + +md5sums="4fa54e40b6a243416f0248123b6ec332 numpy-1.7.0.tar.gz" +sha256sums="f4fa70b7edbab65ee6432eb63743f5489f1919c614632b20b2fb45aa7e682ac6 numpy-1.7.0.tar.gz" +sha512sums="a485daa556f6c76003de1dbb3e42b3daeee0a320c69c81b31a7d2ebbc2cf8ab8e96c214a4758e5e7bf814295dc1d6aa563092b714db7e719678d8462135861a8 numpy-1.7.0.tar.gz" -- cgit v1.2.3