summaryrefslogtreecommitdiff
path: root/extra/python/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python/PKGBUILD')
-rw-r--r--extra/python/PKGBUILD17
1 files changed, 16 insertions, 1 deletions
diff --git a/extra/python/PKGBUILD b/extra/python/PKGBUILD
index d96900b36..1224a7799 100644
--- a/extra/python/PKGBUILD
+++ b/extra/python/PKGBUILD
@@ -8,11 +8,13 @@ pkgver=3.2.2
pkgrel=2
_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' 'sqlite3' 'valgrind')
+[ "$CARCH" = "mips64el" ] && \
+makedepends=('tk' 'sqlite3')
optdepends=('tk: for tkinter' 'sqlite3')
provides=('python3')
replaces=('python3')
@@ -38,6 +40,18 @@ build() {
rm -r Modules/zlib
rm -r Modules/_ctypes/{darwin,libffi}*
+
+ if [ "$CARCH" = "mips64el" ]; then
+ ./configure --prefix=/usr \
+ --enable-shared \
+ --with-threads \
+ --with-computed-gotos \
+ --enable-ipv6 \
+ --without-valgrind \
+ --with-wide-unicode \
+ --with-system-expat \
+ --with-system-ffi
+ else
./configure --prefix=/usr \
--enable-shared \
--with-threads \
@@ -48,6 +62,7 @@ build() {
--with-system-expat \
--with-dbmliborder=gdbm:ndbm \
--with-system-ffi
+ fi
make
}