diff options
Diffstat (limited to 'libre/p7zip-libre/PKGBUILD')
-rw-r--r-- | libre/p7zip-libre/PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD index 61d0d5d71..42192eccb 100644 --- a/libre/p7zip-libre/PKGBUILD +++ b/libre/p7zip-libre/PKGBUILD @@ -12,13 +12,15 @@ pkgrel=4 pkgdesc='Command-line version of the 7zip compressed file archiver without Rar' url='http://p7zip.sourceforge.net/' license=('GPL') -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') provides=("p7zip=$pkgver" 'unzip') conflicts=('p7zip' 'unzip') 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,15 +54,20 @@ 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() { - cd "${srcdir}/${_pkgname}_${pkgver}" + cd "${srcdir}/${_pkgname}_${pkgver}" make install \ DEST_DIR="${pkgdir}" \ @@ -83,4 +90,3 @@ package() { # Install unzip replacement script install -D -m755 "${srcdir}/unzip" "${pkgdir}/usr/bin/unzip" } - |