summaryrefslogtreecommitdiff
path: root/opt/unrar/MAKEPKG
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/unrar/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/unrar/MAKEPKG')
-rw-r--r--opt/unrar/MAKEPKG35
1 files changed, 35 insertions, 0 deletions
diff --git a/opt/unrar/MAKEPKG b/opt/unrar/MAKEPKG
new file mode 100644
index 0000000..1d0e636
--- /dev/null
+++ b/opt/unrar/MAKEPKG
@@ -0,0 +1,35 @@
+#!/bin/mkpkg
+# description: RAR uncompression program
+# url: https://www.rarlab.com/rar_add.htm
+
+name=unrar
+version=7.3.1
+release=1
+
+source=(https://www.rarlab.com/rar/unrarsrc-${version}.tar.gz)
+
+sha256sums=(
+ "634900842a3737d9cc15bbcc71d4c74cc713437e0bca296a573424fe5f2660ab"
+)
+
+build() {
+ cd unrar
+
+ make -j${JOBS:-1} \
+ CXX=clang++ \
+ CXXFLAGS="-O2 -std=c++17 -stdlib=libc++ -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else" \
+ LDFLAGS="-pthread -stdlib=libc++" \
+ DEFINES="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP" \
+ STRIP=: \
+ unrar
+
+ make DESTDIR=$PKG/usr install-unrar
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh
+