aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: 41cd12b269fb11756dc067f1f5f2efb9e0ca66ab (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
32
# 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.5.8
pkgrel=0
pkgdesc="The RAR uncompression program"
url="http://www.rarlab.com"
arch="all"
license="custom"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="http://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 || return 1
}

package() {
	cd "$builddir"
	install -Dm755 unrar "$pkgdir"/usr/bin/unrar || return 1
	install -Dm644 license.txt \
		"$pkgdir/usr/share/licenses/$pkgname/license.txt" || return 1
}

sha512sums="9eac83707fa47a03925e5f3e8adf47889064d748304b732d12a2d379ab525b441f1aa33216377d4ef445f45c4e8ad73d2cd0b560601ceac344c60571b77fd6aa  unrarsrc-5.5.8.tar.gz
16ac44a1d5f3673ead8a974245b93f45e880d3df562bfd5029f955a1ff24f7bee36e02cda014669393932de0e9b25af307d84fb4a383e1e0e45ae6a13875b83a  makefile.patch"