summaryrefslogtreecommitdiffstats
path: root/base/p7zip/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/p7zip/Pkgfile')
-rw-r--r--base/p7zip/Pkgfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/base/p7zip/Pkgfile b/base/p7zip/Pkgfile
new file mode 100644
index 000000000..2a44be021
--- /dev/null
+++ b/base/p7zip/Pkgfile
@@ -0,0 +1,27 @@
+# Description: Utilitaire de compression en ligne dérivé de 7zip
+# URL: http://p7zip.sourceforge.net
+# Maintainer: NuTyX packager team
+# Packager: lesibel at free dot fr
+# Depends on:
+
+name=p7zip
+version=9.13
+#4.65
+release=1
+source=(http://downloads.sourceforge.net/sourceforge/$name/${name}_${version}_src_all.tar.bz2)
+
+build() {
+ cd ${name}_$version
+ sed -i "s|usr/local|usr|g" makefile
+ sed -i "s|-O1|$CXXFLAGS|g" makefile.machine
+ make all3
+ sed -i "s|DEST_HOME=|DEST_HOME=$PKG/usr # |g" install.sh
+ ./install.sh
+ install -m555 bin/7z.so $PKG/usr/lib/p7zip/
+
+ sed -i "s|$PKG/usr|/usr|g" $PKG/usr/bin/7z
+ sed -i "s|$PKG/pkg/usr|/usr|g" $PKG/usr/bin/7za
+ sed -i "s|$PKG/usr|/usr|g" $PKG/usr/bin/7zr
+ mv $PKG/usr/man $PKG/usr/share/
+ rm -rf $PKG/usr/share/doc
+}