summaryrefslogtreecommitdiff
path: root/extra/python/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python/PKGBUILD')
-rw-r--r--extra/python/PKGBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/extra/python/PKGBUILD b/extra/python/PKGBUILD
index f7b84f893..aefd1ba8e 100644
--- a/extra/python/PKGBUILD
+++ b/extra/python/PKGBUILD
@@ -8,11 +8,12 @@ pkgver=3.2.3
pkgrel=3
_pybasever=3.2
pkgdesc="Next generation of the python high-level scripting language"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('custom')
url="http://www.python.org/"
depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind')
+makedepends=('tk' 'sqlite')
+[ "$CARCH" != "mips64el" ] && makedepends+=('valgrind')
optdepends=('tk: for tkinter' 'sqlite')
provides=('python3')
replaces=('python3')
@@ -32,16 +33,22 @@ build() {
rm -r Modules/zlib
rm -r Modules/_ctypes/{darwin,libffi}*
+
+ if [ "$CARCH" != "mips64el" ]; then
+ extraconf=--with-valgrind
+ else
+ extraconf=""
+ fi
./configure --prefix=/usr \
--enable-shared \
--with-threads \
--with-computed-gotos \
--enable-ipv6 \
- --with-valgrind \
--with-wide-unicode \
--with-system-expat \
--with-dbmliborder=gdbm:ndbm \
- --with-system-ffi
+ --with-system-ffi \
+ $extraconf
make
}