summaryrefslogtreecommitdiff
path: root/repo/p7zip
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-10-22 16:29:29 +0100
committerdavidovski <david@davidovski.xyz>2022-10-22 16:29:29 +0100
commitf99268f797c120a24030a573ef22813cd018beb5 (patch)
treeee18857a5eda7bc94286e3924dc2209aea7b92c4 /repo/p7zip
parent95545d88b997a17ff03bb164af33c33e2a12d693 (diff)
Added unrar
Diffstat (limited to 'repo/p7zip')
-rw-r--r--repo/p7zip/p7zip.xibuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/repo/p7zip/p7zip.xibuild b/repo/p7zip/p7zip.xibuild
new file mode 100644
index 0000000..4e01b52
--- /dev/null
+++ b/repo/p7zip/p7zip.xibuild
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+NAME="p7zip"
+DESC="Command-line port of the 7zip compression utility"
+
+MAKEDEPS="bash nasm yasm"
+
+PKG_VER=17.04
+SOURCE="https://github.com/jinfeihan57/p7zip/archive/v$PKG_VER/p7zip-v$PKG_VER.tar.gz"
+
+prepare() {
+ local makefile="makefile.linux_any_cpu_gcc_4.X"
+ case "$CARCH" in
+ x86) makefile="makefile.linux_x86_asm_gcc_4.X" ;;
+ x86_64) makefile="makefile.linux_amd64_asm" ;;
+ esac
+
+ ln -sf $makefile makefile.machine
+
+ sed -e "s,g++,${CXX:-g++}," -i makefile.machine
+ sed -e "s,gcc,${CC:-gcc}," -i makefile.machine
+}
+
+build() {
+ make all3 OPTFLAGS="$CXXFLAGS -O2"
+}
+
+check() {
+ make test
+}
+
+package() {
+ make install DEST_DIR="$PKG_DEST" DEST_HOME="/usr" \
+ DEST_MAN="/usr/share/man" \
+ DEST_SHARE_DOC="/usr/share/doc/p7zip"
+
+ install -Dm755 contrib/gzip-like_CLI_wrapper_for_7z/p7zip \
+ "$PKG_DEST"/usr/bin/p7zip
+ install -Dm644 contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1 \
+ "$PKG_DEST"/usr/share/man/man1/p7zip.1
+}
+