diff options
Diffstat (limited to 'libre/p7zip-libre')
-rw-r--r-- | libre/p7zip-libre/9.04-makefile.patch | 19 | ||||
-rw-r--r-- | libre/p7zip-libre/PKGBUILD | 51 |
2 files changed, 70 insertions, 0 deletions
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..cbee2b234 --- /dev/null +++ b/libre/p7zip-libre/PKGBUILD @@ -0,0 +1,51 @@ +# $Id$ +# Contributor: Thayer Williams <thayer@archlinux.org> +# Contributor: Hugo Doria <hugo@archlinux.org> +# Contributor: TuxSpirit<tuxspirit@archlinux.fr> 2007/11/17 21:22:36 UTC +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> +# Maintainer: Gaetan Bisson <bisson@archlinux.org> + +pkgname=p7zip-libre +_pkgname=${pkgname%-libre} +pkgver=9.20 +pkgrel=1 +pkgdesc='Command-line version of the 7zip compressed file archiver without Rar' +arch=('i686' 'x86_64') +license=('GPL') +url='http://p7zip.sourceforge.net/' +makedepends=('yasm' 'nasm') +source=("http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}_${pkgver}_src_all.tar.bz2" + 9.04-makefile.patch) +provides=("p7zip=$pkgver") +conflicts=('p7zip') +replaces=('p7zip') +sha1sums=('c976df4543ea946a65bc3f5e3d4e9baa417e5f12' + '3a3333d4703955664fdd4023c624ab4828af0ab1') +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 + + [[ $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 + + make all3 OPTFLAGS="${CXXFLAGS}" +} + +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" + + 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 +} |