diff options
Diffstat (limited to 'extra/python/PKGBUILD')
-rw-r--r-- | extra/python/PKGBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/extra/python/PKGBUILD b/extra/python/PKGBUILD index d295893d5..d991489df 100644 --- a/extra/python/PKGBUILD +++ b/extra/python/PKGBUILD @@ -8,11 +8,12 @@ pkgver=3.3.2 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') @@ -34,6 +35,12 @@ build() { rm -r Modules/zlib rm -r Modules/_ctypes/{darwin,libffi}* + if [ "$CARCH" != "mips64el" ]; then + extraconf=--with-valgrind + else + extraconf="" + fi + patch -Np1 -i ../python-3.3.2-CVE-2013-2099.patch ./configure --prefix=/usr \ @@ -41,10 +48,10 @@ build() { --with-threads \ --with-computed-gotos \ --enable-ipv6 \ - --with-valgrind \ --with-system-expat \ --with-dbmliborder=gdbm:ndbm \ - --with-system-ffi + --with-system-ffi \ + $extraconf make } |