diff options
Diffstat (limited to 'libre/p7zip-libre/PKGBUILD')
-rw-r--r-- | libre/p7zip-libre/PKGBUILD | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD index cbee2b234..28a900957 100644 --- a/libre/p7zip-libre/PKGBUILD +++ b/libre/p7zip-libre/PKGBUILD @@ -10,7 +10,7 @@ _pkgname=${pkgname%-libre} pkgver=9.20 pkgrel=1 pkgdesc='Command-line version of the 7zip compressed file archiver without Rar' -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('GPL') url='http://p7zip.sourceforge.net/' makedepends=('yasm' 'nasm') @@ -22,30 +22,34 @@ replaces=('p7zip') sha1sums=('c976df4543ea946a65bc3f5e3d4e9baa417e5f12' '3a3333d4703955664fdd4023c624ab4828af0ab1') build() { - cd "${srcdir}/${_pkgname}_${pkgver}" + cd "${srcdir}/${_pkgname}_${pkgver}" - msg "Removing unRar" - sed -e '/Rar/d' -i makefile* - rm -rf CPP/7zip/Compress/Rar - patch -p1 -i $startdir/src/9.04-makefile.patch + msg "Removing unRar" + sed -e '/Rar/d' -i makefile* + rm -rf CPP/7zip/Compress/Rar + patch -p1 -i $startdir/src/9.04-makefile.patch - [[ $CARCH = x86_64 ]] \ - && cp makefile.linux_amd64_asm makefile.machine \ - || cp makefile.linux_x86_asm_gcc_4.X makefile.machine - sed -i "s|usr/local|usr|g" makefile + if [[ $CARCH = x86_64 ]] ; then + cp makefile.linux_amd64_asm makefile.machine + elif [ $CARCH = mips64el ]; then + cp makefile.linux_any_cpu_gcc_4.X makefile.machine + else + cp makefile.linux_x86_asm_gcc_4.X makefile.machine + fi + sed -i "s|usr/local|usr|g" makefile - make all3 OPTFLAGS="${CXXFLAGS}" + make all3 OPTFLAGS="${CXXFLAGS}" } package() { - cd "${srcdir}/${_pkgname}_${pkgver}" + cd "${srcdir}/${_pkgname}_${pkgver}" - make install \ - DEST_HOME="${pkgdir}/usr" \ - DEST_MAN="${pkgdir}/usr/share/man" \ - DEST_SHARE_DOC="http://www.bugaco.com/7zip" + make install \ + DEST_HOME="${pkgdir}/usr" \ + DEST_MAN="${pkgdir}/usr/share/man" \ + DEST_SHARE_DOC="http://www.bugaco.com/7zip" - install -m555 bin/7z.so ${pkgdir}/usr/lib/p7zip/ - sed "s|${pkgdir}/usr|/usr|g" -i "${pkgdir}"/usr/bin/7z{,a,r} - install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z + install -m555 bin/7z.so ${pkgdir}/usr/lib/p7zip/ + sed "s|${pkgdir}/usr|/usr|g" -i "${pkgdir}"/usr/bin/7z{,a,r} + install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z } |