From f99268f797c120a24030a573ef22813cd018beb5 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 22 Oct 2022 16:29:29 +0100 Subject: Added unrar --- repo/unrar/makefile.patch | 32 ++++++++++++++++++++++++++++++++ repo/unrar/unrar.xibuild | 27 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 repo/unrar/makefile.patch create mode 100644 repo/unrar/unrar.xibuild (limited to 'repo/unrar') diff --git a/repo/unrar/makefile.patch b/repo/unrar/makefile.patch new file mode 100644 index 0000000..105a11c --- /dev/null +++ b/repo/unrar/makefile.patch @@ -0,0 +1,32 @@ +--- unrar2/makefile 2022-10-17 08:34:16.947982925 +0100 ++++ unrar/makefile 2022-10-17 08:37:54.507963545 +0100 +@@ -2,8 +2,9 @@ + # Makefile for UNIX - unrar + + # Linux using GCC +-CXX=c++ +-CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else ++CXX?=c++ ++CXXFLAGS?=-O2 ++CXXFLAGS=-Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else + LIBFLAGS=-fPIC + DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP + STRIP=strip +@@ -10,5 +11,5 @@ + AR=ar +-LDFLAGS=-pthread ++LDFLAGS+=-pthread + DESTDIR=/usr + + # Linux using LCC +@@ -142,8 +143,8 @@ + @rm -f $(OBJECTS) $(UNRAR_OBJ) $(LIB_OBJ) + @rm -f unrar libunrar.* + +-unrar: clean $(OBJECTS) $(UNRAR_OBJ) +- @rm -f unrar ++unrar: $(OBJECTS) $(UNRAR_OBJ) ++ @rm -rf unrar + $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS) + $(STRIP) unrar + 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 +} -- cgit v1.2.1