From c408bffa8a9be717b71b339bb8f203abebb25c2f Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 17 Jul 2018 21:05:49 -0500 Subject: user/unrar: pull in, assign to djt@, bump to 5.6.4, fix --- user/unrar/APKBUILD | 33 +++++++++++++++++++++++++++++++++ user/unrar/makefile.patch | 27 +++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 user/unrar/APKBUILD create mode 100644 user/unrar/makefile.patch (limited to 'user/unrar') diff --git a/user/unrar/APKBUILD b/user/unrar/APKBUILD new file mode 100644 index 000000000..187000474 --- /dev/null +++ b/user/unrar/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Sören Tempel +# Contributor: Carlo Landmeter +# Maintainer: Dan Theisen +pkgname=unrar +pkgver=5.6.4 +pkgrel=0 +pkgdesc="The RAR uncompression program" +url="https://www.rarlab.com" +arch="all" +options="!check" # No test suite. +license="custom:UnRAR" +depends="" +makedepends="" +subpackages="$pkgname-doc" +source="https://www.rarlab.com/rar/unrarsrc-$pkgver.tar.gz + makefile.patch" +builddir="$srcdir"/$pkgname + +build() { + cd "$builddir" + make CXX="${CXX:-g++}" CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" STRIP=: -f makefile +} + +package() { + cd "$builddir" + install -Dm755 unrar "$pkgdir"/usr/bin/unrar + install -Dm644 license.txt \ + "$pkgdir/usr/share/licenses/$pkgname/license.txt" +} + +sha512sums="0ff55a82f8593c59c9773ffa7dec00386b762c504a08497bc1a50de5502c52e1c1d1043cb8ba353291aa61a3ebc9f5f0a21d313d89639f400e5fc45f01d62cca unrarsrc-5.6.4.tar.gz +7da30d8454a67999e7052ed2c0ee8d29627b1d47bfdf36e8cf1e24f3c36ee58b17f7e7a6505a4b38e0ca3162067368a1bf554829fd824f7c17a3a2a5b35ca29c makefile.patch" diff --git a/user/unrar/makefile.patch b/user/unrar/makefile.patch new file mode 100644 index 000000000..1892dab24 --- /dev/null +++ b/user/unrar/makefile.patch @@ -0,0 +1,27 @@ +diff -upr unrar.orig/makefile unrar/makefile +--- unrar.orig/makefile 2017-06-30 21:34:46.228703991 +0200 ++++ unrar/makefile 2017-06-30 21:35:07.535424717 +0200 +@@ -3,12 +3,12 @@ + + # Linux using GCC + CXX=c++ +-CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else ++CXXFLAGS?=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else + LIBFLAGS=-fPIC + DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP + STRIP=strip + AR=ar +-LDFLAGS=-pthread ++LDFLAGS+=-pthread + DESTDIR=/usr + + # Linux using LCC +@@ -140,7 +140,7 @@ uninstall: uninstall-unrar + clean: + @rm -f *.o *.bak *~ + +-unrar: clean $(OBJECTS) $(UNRAR_OBJ) ++unrar: $(OBJECTS) $(UNRAR_OBJ) + @rm -f unrar + $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS) + $(STRIP) unrar -- cgit v1.2.3-70-g09d2