summaryrefslogtreecommitdiff
path: root/extra/python
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python')
-rw-r--r--extra/python/PKGBUILD17
1 files changed, 16 insertions, 1 deletions
diff --git a/extra/python/PKGBUILD b/extra/python/PKGBUILD
index f90d8576f..a29eaba92 100644
--- a/extra/python/PKGBUILD
+++ b/extra/python/PKGBUILD
@@ -8,11 +8,13 @@ pkgver=3.2.2
pkgrel=1
_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')
@@ -32,6 +34,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 \
@@ -41,6 +55,7 @@ build() {
--with-wide-unicode \
--with-system-expat \
--with-system-ffi
+ fi
make
}