aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: 21dd157f313d156e665594860e3d671a9dbafdb3 (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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=unrar
pkgver=5.7.2
pkgrel=0
pkgdesc="RAR uncompression program"
url="https://www.rarlab.com"
arch="all"
options="!check"  # No test suite.
license="custom"
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++}" STRIP=: -f makefile
}

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

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

sha512sums="de272bcea36002f5bc11a1ded3f613f0ce38d0617041806900a544fbf26d74f5d7569b20e8240c8c2e43b1fde4684665b3b91f7e81386c94ba14f89a91811838  unrarsrc-5.7.2.tar.gz
2caa145c2fb1257c3cea1f552cba7bf8a3f8772c65c9751aad3fb5bec4957c7fefdb7bbb016c94b73d4778cef76460ddc2abafa8a12d09ebd24bcb6f1dcb263c  makefile.patch"