summaryrefslogtreecommitdiff
path: root/data/unrar
diff options
context:
space:
mode:
Diffstat (limited to 'data/unrar')
-rw-r--r--data/unrar/make.sh9
-rw-r--r--data/unrar/strip.diff17
2 files changed, 22 insertions, 4 deletions
diff --git a/data/unrar/make.sh b/data/unrar/make.sh
index 916b2a9ae..ab228ce28 100644
--- a/data/unrar/make.sh
+++ b/data/unrar/make.sh
@@ -1,5 +1,6 @@
-tar -zxvf "${PKG_DATA}/unrarsrc-3.6.8.tar.gz"
-cd unrar
+pkg:extract
+cd *
pkg:patch
-make -f makefile.unix CXX=arm-apple-darwin-g++ STRIP=arm-apple-darwin-strip all
-pkg:usrbin unrar
+make -f makefile.unix CXX="${PKG_TARG}-g++" all
+pkg: mkdir -p /usr/bin
+pkg: cp -a unrar /usr/bin
diff --git a/data/unrar/strip.diff b/data/unrar/strip.diff
new file mode 100644
index 000000000..7773b0374
--- /dev/null
+++ b/data/unrar/strip.diff
@@ -0,0 +1,17 @@
+diff -ru unrar/makefile.unix unrar+iPhone/makefile.unix
+--- unrar/makefile.unix 2005-04-30 07:00:12.000000000 +0000
++++ unrar+iPhone/makefile.unix 2008-04-04 20:59:42.000000000 +0000
+@@ -105,13 +105,11 @@
+ unrar: $(OBJECTS) $(UNRAR_OBJ)
+ @rm -f unrar
+ $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
+- $(STRIP) unrar
+
+ sfx: WHAT=SFX_MODULE
+ sfx: $(OBJECTS)
+ @rm -f default.sfx
+ $(LINK) -o default.sfx $(LDFLAGS) $(OBJECTS)
+- $(STRIP) default.sfx
+
+ lib: WHAT=RARDLL
+ lib: $(OBJECTS) $(LIB_OBJ)