aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: 59e0d6b3918aa2692697f2ed42e8437134bf4a4e (plain)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=unrar
pkgver=5.8.4
pkgrel=0
pkgdesc="RAR uncompression program"
url="https://www.rarlab.com"
arch="all"
options="!check"  # No test suite.
license="custom"
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++}" STRIP=: -f makefile
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir"/usr install

	install -Dm644 license.txt \
		"$pkgdir/usr/share/licenses/$pkgname/license.txt"
}

sha512sums="dd3502662b443f05c7bd01a50806b9e3443f9bbba7d88ee8fe9ca0d671d93b0db8956b822ec25b9d827941313ef2ec5608f15934bab91cecbab1ccea9ae8129e  unrarsrc-5.8.4.tar.gz
2caa145c2fb1257c3cea1f552cba7bf8a3f8772c65c9751aad3fb5bec4957c7fefdb7bbb016c94b73d4778cef76460ddc2abafa8a12d09ebd24bcb6f1dcb263c  makefile.patch"