aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: 8cfc4a9b731fa61b366bc917256ab680e8f20bbb (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
33
34
35
36
# 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.4.5
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
}

md5sums="588b3fadc04eea7372cbfe98e4709aee  unrarsrc-5.4.5.tar.gz
96b653c6d61c4e0019fae3c6ac51f0ec  makefile.patch"
sha256sums="e470c584332422893fb52e049f2cbd99e24dc6c6da971008b4e2ae4284f8796c  unrarsrc-5.4.5.tar.gz
7c7d52c6a43373cebd5e47226e6842ad4a61dc73d5e28965d0a28d5ebde42aad  makefile.patch"
sha512sums="ba2abf11638b5ee026cb9e0c3576c94376a01ab3c5411b9bd0e8116d64879c81e76df16f98d850f0f0f5387dda046f38be64ddfb4fe57431cc4d97066d6e3c2f  unrarsrc-5.4.5.tar.gz
437a616f85abef6cc219278c680c85f647f45a70079da84379d42de58d924cc4ba6aeeb395f4d75bb74896f47521c12487197b3cfe5d4b997d3bf4d7a45b564d  makefile.patch"