unrar: update Makefile patch

So that we can install to TERMUX_PKG_MASSAGEDIR.
This commit is contained in:
Henrik Grimler 2021-05-25 21:19:09 +02:00
parent f12977efdf
commit bb45eeefc7
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 22 additions and 5 deletions

View File

@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="non-free"
TERMUX_PKG_LICENSE_FILE="license.txt" TERMUX_PKG_LICENSE_FILE="license.txt"
TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=6.1.2 TERMUX_PKG_VERSION=6.1.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://www.rarlab.com/rar/unrarsrc-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://www.rarlab.com/rar/unrarsrc-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=3e96421f568e438af6dcdaef717c48eb93b825d97058ebcb173b9bfc57807be3 TERMUX_PKG_SHA256=3e96421f568e438af6dcdaef717c48eb93b825d97058ebcb173b9bfc57807be3
TERMUX_PKG_DEPENDS="libandroid-support, libc++" TERMUX_PKG_DEPENDS="libandroid-support, libc++"

View File

@ -1,7 +1,6 @@
diff -u -r ../unrar/makefile ./makefile --- ./makefile.orig 2021-05-25 19:02:31.081243251 +0000
--- ../unrar/makefile 2017-11-22 06:53:39.000000000 +0000 +++ ./makefile 2021-05-25 19:02:50.741677177 +0000
+++ ./makefile 2018-03-12 10:30:16.141557520 +0000 @@ -2,14 +2,13 @@
@@ -2,14 +2,14 @@
# Makefile for UNIX - unrar # Makefile for UNIX - unrar
# Linux using GCC # Linux using GCC
@ -19,7 +18,24 @@ diff -u -r ../unrar/makefile ./makefile
+STRIP?=strip +STRIP?=strip
+AR?=ar +AR?=ar
+LDFLAGS?=-pthread +LDFLAGS?=-pthread
+DESTDIR=$(PREFIX)
# Linux using LCC # Linux using LCC
#CXX=lcc #CXX=lcc
@@ -161,14 +160,14 @@
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
install-unrar:
- install -D unrar $(DESTDIR)/bin/unrar
+ install -D unrar $(DESTDIR)$(PREFIX)/bin/unrar
uninstall-unrar:
rm -f $(DESTDIR)/bin/unrar
install-lib:
- install libunrar.so $(DESTDIR)/lib
- install libunrar.a $(DESTDIR)/lib
+ install libunrar.so $(DESTDIR)$(PREFIX)/lib
+ install libunrar.a $(DESTDIR)$(PREFIX)/lib
uninstall-lib:
rm -f $(DESTDIR)/lib/libunrar.so