From 3ab8f176f2dccdd17045a329135efa829c801a93 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 10 Feb 2011 10:42:08 -0300 Subject: p7zip-libre-9.13-2 --- libre/p7zip-libre/9.04-makefile.patch | 19 +++++++ libre/p7zip-libre/PKGBUILD | 64 ++++++++++++++++++++++ .../p7zip-libre-9.13-2-i686-package.log | 12 ++++ 3 files changed, 95 insertions(+) create mode 100644 libre/p7zip-libre/9.04-makefile.patch create mode 100644 libre/p7zip-libre/PKGBUILD create mode 100644 libre/p7zip-libre/p7zip-libre-9.13-2-i686-package.log (limited to 'libre') diff --git a/libre/p7zip-libre/9.04-makefile.patch b/libre/p7zip-libre/9.04-makefile.patch new file mode 100644 index 000000000..93a99cc90 --- /dev/null +++ b/libre/p7zip-libre/9.04-makefile.patch @@ -0,0 +1,19 @@ +--- p7zip_9.04/CPP/7zip/Bundles/Format7zFree/makefile.orig 2010-01-04 13:58:54.527887746 +0100 ++++ p7zip_9.04/CPP/7zip/Bundles/Format7zFree/makefile 2010-01-04 13:59:10.290868343 +0100 +@@ -247,8 +247,6 @@ + MyAes.o \ + Pbkdf2HmacSha1.o \ + RandGen.o \ +- Rar20Crypto.o \ +- RarAes.o \ + Sha1.o \ + WzAes.o \ + ZipCrypto.o \ +@@ -298,7 +296,6 @@ + $(HFS_OBJS) \ + $(ISO_OBJS) \ + $(NSIS_OBJS) \ +- $(RAR_OBJS) \ + $(TAR_OBJS) \ + $(UDF_OBJS) \ + $(WIM_OBJS) \ diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD new file mode 100644 index 000000000..02311eeba --- /dev/null +++ b/libre/p7zip-libre/PKGBUILD @@ -0,0 +1,64 @@ +# $Id: PKGBUILD 85904 2010-07-22 04:49:57Z dgriffiths $ +# Contributor: Thayer Williams +# Contributor: Hugo Doria +# Contributor: TuxSpirit 2007/11/17 21:22:36 UTC +# Maintainer: Daniel J Griffiths +# Maintainer (Parabola): fauno + +pkgname=p7zip-libre +_pkgname=${pkgname%-libre} +pkgver=9.13 +pkgrel=2 +pkgdesc="A command-line port of the 7zip compression utility without RAR" +arch=('i686' 'x86_64') +license=('GPL') +url="http://p7zip.sourceforge.net" +depends=('gcc-libs' 'bash') +options=(!emptydirs) +provides=("p7zip=$pkgver") +replaces=('p7zip') +conflicts=('p7zip') +source=(http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}_${pkgver}_src_all.tar.bz2 +9.04-makefile.patch) +md5sums=('8ddb5053db3b1f2696407d01be145779' +'dc3e929ead20d7133fb3cc453aa62156') +options=(!emptydirs) + +build() { + 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 + + #Arch64 fix + if [ "$CARCH" == "x86_64" ]; then + cp makefile.linux_amd64 makefile.machine + else + cp makefile.linux_x86_ppc_alpha_gcc_4.X makefile.machine + fi + + sed -i "s|usr/local|usr|g" makefile + + make all3 OPTFLAGS="${CXXFLAGS}" || return 1 +} + +package() { + cd ${srcdir}/${_pkgname}_${pkgver} + + make install DEST_HOME="${pkgdir}/usr" \ + DEST_MAN="${pkgdir}/usr/share/man" \ + DEST_SHARE_DOC="http://www.bugaco.com/7zip" + + mkdir -p ${pkgdir}/usr/share/doc/p7zip/DOCS + install -m555 bin/7z.so ${pkgdir}/usr/lib/p7zip/ + + sed -i "s|${pkgdir}/usr|/usr|g" ${pkgdir}/usr/bin/7z + sed -i "s|${pkgdir}/usr|/usr|g" ${pkgdir}/usr/bin/7za + sed -i "s|${pkgdir}/usr|/usr|g" ${pkgdir}/usr/bin/7zr + + # Install mc's virtual filesystem + install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z \ + ${pkgdir}/usr/lib/mc/extfs.d/u7z +} diff --git a/libre/p7zip-libre/p7zip-libre-9.13-2-i686-package.log b/libre/p7zip-libre/p7zip-libre-9.13-2-i686-package.log new file mode 100644 index 000000000..a066aa6ea --- /dev/null +++ b/libre/p7zip-libre/p7zip-libre-9.13-2-i686-package.log @@ -0,0 +1,12 @@ +./install.sh /build/pkg/usr/bin /build/pkg/usr/lib/p7zip /build/pkg/usr/share/man http://www.bugaco.com/7zip +- installing /build/pkg/usr/bin/7za +- installing /build/pkg/usr/bin/7zr +- installing /build/pkg/usr/lib/p7zip/7zCon.sfx +- installing /build/pkg/usr/bin/7z +chmod: cannot access `/build/pkg/usr/lib/p7zip/*/*': No such file or directory +- installing /build/pkg/usr/share/man/man1/7z.1 +- installing /build/pkg/usr/share/man/man1/7za.1 +- installing /build/pkg/usr/share/man/man1/7zr.1 +- installing http://www.bugaco.com/7zip/README +- installing http://www.bugaco.com/7zip/ChangeLog +- installing HTML help in http://www.bugaco.com/7zip/DOCS -- cgit v1.2.3-54-g00ecf