[arch-commits] CVS update of extra/system/p7zip (PKGBUILD p7zip.install)
Aaron Griffin
aaron at archlinux.org
Tue Jan 8 05:29:44 UTC 2008
Date: Tuesday, January 8, 2008 @ 00:29:44
Author: aaron
Path: /home/cvs-extra/extra/system/p7zip
Added: p7zip.install (1.1)
Modified: PKGBUILD (1.14 -> 1.15)
upgpkg: p7zip 4.57-1
FS#6288 - Support for mc virtual FS
---------------+
PKGBUILD | 11 ++++++++---
p7zip.install | 18 ++++++++++++++++++
2 files changed, 26 insertions(+), 3 deletions(-)
Index: extra/system/p7zip/PKGBUILD
diff -u extra/system/p7zip/PKGBUILD:1.14 extra/system/p7zip/PKGBUILD:1.15
--- extra/system/p7zip/PKGBUILD:1.14 Mon Dec 3 18:53:21 2007
+++ extra/system/p7zip/PKGBUILD Tue Jan 8 00:29:43 2008
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD,v 1.14 2007/12/03 23:53:21 aaron Exp $
+# $Id: PKGBUILD,v 1.15 2008/01/08 05:29:43 aaron Exp $
# Maintainer: Aaron Griffin <aaron at archlinux.org>
# Contributor: TuxSpirit<tuxspirit at archlinux.fr> 2007/11/17 21:22:36 UTC
pkgname=p7zip
-pkgver=4.55
+pkgver=4.57
pkgrel=1
pkgdesc="A command-line port of the 7zip compression utility"
arch=(i686 x86_64)
@@ -11,8 +11,9 @@
url="http://p7zip.sourceforge.net"
depends=(gcc-libs bash)
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${pkgver}_src_all.tar.bz2)
-md5sums=('bb141529cf2374a2e15735f155273172')
+install=p7zip.install
options=(!emptydirs)
+md5sums=('773f78d8b297eb858626667d4dfa93c7')
build() {
cd $startdir/src/${pkgname}_${pkgver}
@@ -34,4 +35,8 @@
sed -i "s|$startdir/pkg/usr|/usr|g" $startdir/pkg/usr/bin/7z
sed -i "s|$startdir/pkg/usr|/usr|g" $startdir/pkg/usr/bin/7za
sed -i "s|$startdir/pkg/usr|/usr|g" $startdir/pkg/usr/bin/7zr
+
+ # Install mc's virtual filesystem
+ install -m644 -D contrib/VirtualFileSystemForMidnightCommander/u7z \
+ $startdir/pkg/usr/share/mc/extfs/u7z
}
Index: extra/system/p7zip/p7zip.install
diff -u /dev/null extra/system/p7zip/p7zip.install:1.1
--- /dev/null Tue Jan 8 00:29:44 2008
+++ extra/system/p7zip/p7zip.install Tue Jan 8 00:29:43 2008
@@ -0,0 +1,18 @@
+
+post_install () {
+ post_upgrade
+}
+
+post_upgrade () {
+ echo ":: In order to use p7zip with mc:"
+ echo ":: Add u7z to /usr/share/mc/extfs/extfs.ini"
+ echo ":: and add the following to /usr/share/mv/mc.ext:"
+ echo "::"
+ echo ":: regex/\.(7z|7Z)$"
+ echo ":: View=%view{ascii} 7za l %f"
+ echo ":: Open=%cd %p#u7z"
+}
+
+op=$1
+shift
+$op $*
More information about the arch-commits
mailing list