summaryrefslogtreecommitdiffstats
path: root/extra/p7zip/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/p7zip/Pkgfile')
-rw-r--r--extra/p7zip/Pkgfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/extra/p7zip/Pkgfile b/extra/p7zip/Pkgfile
new file mode 100644
index 000000000..a469b4278
--- /dev/null
+++ b/extra/p7zip/Pkgfile
@@ -0,0 +1,26 @@
+# 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
+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
+}