diff options
Diffstat (limited to 'libre/p7zip-libre/PKGBUILD')
-rw-r--r-- | libre/p7zip-libre/PKGBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD index d0cb7ac26..42192eccb 100644 --- a/libre/p7zip-libre/PKGBUILD +++ b/libre/p7zip-libre/PKGBUILD @@ -19,6 +19,8 @@ replaces=('p7zip' 'unzip') optdepends=('wxgtk: GUI' 'desktop-file-utils: desktop entries') makedepends=('yasm' 'nasm' 'wxgtk') +[ "$CARCH" = "mips64el" ] && \ +makedepends=('yasm' 'nasm') source=("http://repo.parabolagnulinux.org/other/${pkgname}_${pkgver}.tar.bz2" 'p7zip-libre.patch' 'unzip' # unzip replacement @@ -52,11 +54,16 @@ mksource() { build() { cd "${srcdir}/${_pkgname}_${pkgver}" - [[ $CARCH = x86_64 ]] \ - && cp makefile.linux_amd64_asm makefile.machine \ - || cp makefile.linux_x86_asm_gcc_4.X makefile.machine + case $CARCH in + x86_64) cp makefile.linux_amd64_asm makefile.machine ;; + i686) cp makefile.linux_x86_asm_gcc_4.X makefile.machine ;; + esac - make all4 OPTFLAGS="${CXXFLAGS}" + if [ "$CARCH" = "mips64el" ]; then + make all3 OPTFLAGS="${CXXFLAGS}" + else + make all4 OPTFLAGS="${CXXFLAGS}" + fi } package() { |