summaryrefslogtreecommitdiff
path: root/repo/unrar/unrar.xibuild
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/unrar/unrar.xibuild
parent95545d88b997a17ff03bb164af33c33e2a12d693 (diff)
Added unrar
Diffstat (limited to 'repo/unrar/unrar.xibuild')
-rw-r--r--repo/unrar/unrar.xibuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/repo/unrar/unrar.xibuild b/repo/unrar/unrar.xibuild
new file mode 100644
index 0000000..2d2500a
--- /dev/null
+++ b/repo/unrar/unrar.xibuild
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+NAME="unrar"
+DESC="RAR uncompression program"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=6.0.7
+SOURCE="https://www.rarlab.com/rar/unrarsrc-$PKG_VER.tar.gz"
+ADDITIONAL="makefile.patch"
+
+prepare () {
+ apply_patches
+ touch unrar
+}
+
+build () {
+ make CXX="${CXX:-g++}" STRIP=: -f makefile
+}
+
+package () {
+ make PREFIX=/usr DESTDIR=$PKG_DEST install
+
+ install -Dm644 license.txt \
+ "$PKG_DEST"/usr/share/licenses/unrar/license.txt
+}