diff options
Diffstat (limited to 'extra/python/PKGBUILD')
-rw-r--r-- | extra/python/PKGBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/extra/python/PKGBUILD b/extra/python/PKGBUILD index 5654b4db8..268e8f22d 100644 --- a/extra/python/PKGBUILD +++ b/extra/python/PKGBUILD @@ -9,11 +9,12 @@ pkgver=3.3.4 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-libs') +makedepends=('tk>=8.6.0' 'sqlite' 'bluez-libs') +[ "$CARCH" != "mips64el" ] && makedepends+=('valgrind') optdepends=('tk: for tkinter' 'sqlite') options=('!makeflags') provides=('python3') @@ -32,21 +33,26 @@ prepare() { rm -r Modules/expat rm -r Modules/zlib rm -r Modules/_ctypes/{darwin,libffi}* - } build() { cd "${srcdir}/Python-${pkgver}" + 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 } |