aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: 1936205f90be088b1a1909f68b60f0ea465e76fc (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
37
38
39
40
41
42
43
44
45
46
# 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.3.11
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
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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="4a29cc1b47ced82db11e06090a95ed51  unrarsrc-5.3.11.tar.gz
b36d660b20005b83987ce81614b8a600  makefile.patch"
sha256sums="77b87af4b2976ef7c6b0c79e071284c2c1b035a9543273ec925f9d92f73b8763  unrarsrc-5.3.11.tar.gz
fdebc5aee7399925d615421807d97d2663c61e7f894518877c0cb938bb4e1c24  makefile.patch"
sha512sums="14ea833fe4c2d81718df25794d2e795a255f92c68a5533d6a7d2cbfc072db3ce07bba7ba1fd5555aad1a17fbaf4980eb217a7d9f6158461fa917e1a17590569b  unrarsrc-5.3.11.tar.gz
ba81ae03423f5843e3b3b3503829a067b4925b31b5a7348f6c1244a2c1663ed63f8b1fe8a80daa376c51ac128eb74aa7475bf3e53aa8fc9aac09929127b20e83  makefile.patch"