summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/p7zip
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verison.net>2010-03-14 05:40:08 (GMT)
committerMichael Hanson <hansonorders@verison.net>2010-03-14 05:40:08 (GMT)
commit095d2f68ab15cd95417bb6f60a25a042ba7602e4 (patch)
tree63e47b809c7b0db5568039bda1dddec96f3d1e01 /abs/extra-testing/p7zip
parent5a8b4a54246cb05ee5b6661a5597a02a3c21687b (diff)
parentd8970e8dee6771e56be34194c93551718672e5af (diff)
downloadlinhes_pkgbuild-095d2f68ab15cd95417bb6f60a25a042ba7602e4.zip
linhes_pkgbuild-095d2f68ab15cd95417bb6f60a25a042ba7602e4.tar.gz
linhes_pkgbuild-095d2f68ab15cd95417bb6f60a25a042ba7602e4.tar.bz2
Merge branch 'master' of mihanson@knoppmyth.net:LinHES-PKGBUILD
Diffstat (limited to 'abs/extra-testing/p7zip')
-rw-r--r--abs/extra-testing/p7zip/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/abs/extra-testing/p7zip/PKGBUILD b/abs/extra-testing/p7zip/PKGBUILD
new file mode 100644
index 0000000..9ae5122
--- /dev/null
+++ b/abs/extra-testing/p7zip/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 70413 2010-02-26 18:54:59Z thayer $
+# Maintainer: Thayer Williams <thayer@archlinux.org>
+# Contributor: Hugo Doria <hugo@archlinux.org>
+# Contributor: TuxSpirit<tuxspirit@archlinux.fr> 2007/11/17 21:22:36 UTC
+
+pkgname=p7zip
+pkgver=9.04
+pkgrel=2
+pkgdesc="A command-line port of the 7zip compression utility"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://p7zip.sourceforge.net"
+depends=('gcc-libs' 'bash')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${pkgver}_src_all.tar.bz2)
+options=(!emptydirs)
+
+build() {
+ cd ${srcdir}/${pkgname}_${pkgver}
+
+ #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
+ 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 -m755 -D contrib/VirtualFileSystemForMidnightCommander/u7z \
+ ${pkgdir}/usr/share/mc/extfs/u7z
+}
+md5sums=('9194ebf9a2b3735d236aed001de5f6f8')