diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-09-26 13:15:45 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-09-26 13:15:45 -0300 |
commit | 8aa6cf7dacd74c155e7b2dd7af68a5cb4460e5b3 (patch) | |
tree | 63d4d19982a9d3b555af870b6d0250f844e8679a /libre/p7zip-libre/PKGBUILD | |
parent | 3d95be043e9a5bde335138e8c591ba22aee8a6a3 (diff) |
Updates and some missing files
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() { |