summaryrefslogtreecommitdiff
path: root/user/unrar/APKBUILD
blob: 5364d74f6f4a74eda68219518d9df6ac1a306c24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.6
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="1e1e9dc2ed104ab7819d11ad2249780a4320cb30f3c427ea1669c3769fa3a8369841711a2d46d918049659bc67b2cd7dc7560a12127d810a57614293c24fe25a  unrarsrc-5.6.6.tar.gz
7da30d8454a67999e7052ed2c0ee8d29627b1d47bfdf36e8cf1e24f3c36ee58b17f7e7a6505a4b38e0ca3162067368a1bf554829fd824f7c17a3a2a5b35ca29c  makefile.patch"