diff options
Diffstat (limited to 'user/unrar/APKBUILD')
-rw-r--r-- | user/unrar/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
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 <soeren+alpine@soeren-tempel.net> +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Dan Theisen <djt@hxx.in> +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" |