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 0d2f87b48..5ebc686fd 100644
--- a/extra/python/PKGBUILD
+++ b/extra/python/PKGBUILD
@@ -8,11 +8,12 @@ pkgver=3.3.1
pkgrel=1
_pybasever=3.3
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>=8.6.0' 'sqlite' 'valgrind' 'bluez')
+makedepends=('tk>=8.6.0' 'sqlite' 'bluez')
+[ "$CARCH" != "mips64el" ] && makedepends+=('valgrind')
optdepends=('tk: for tkinter' 'sqlite')
provides=('python3')
replaces=('python3')
@@ -32,15 +33,21 @@ 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-system-expat \
--with-dbmliborder=gdbm:ndbm \
- --with-system-ffi
+ --with-system-ffi \
+ $extraconf
make
}