summaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: e7f36233758a5418341dc5e64e50a5e2e87c78d3 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=unrar
pkgver=5.0.14
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"

prepare() {
	cd "$srcdir/$pkgname"
	sed -i 's/-O2/-Os/g' makefile
}

build() {
	cd "$srcdir/$pkgname"
	make -f makefile || return 1
}

package() {
	cd "$srcdir/$pkgname"
	install -Dm755 unrar "$pkgdir"/usr/bin/unrar
	install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"

}

md5sums="be4261c70a790c61c1747aef59e72db0  unrarsrc-5.0.14.tar.gz"
sha256sums="e276ea30a2dc9b8961a4268772e5b6caccaa984664e2d5255a43fcb0f5d59806  unrarsrc-5.0.14.tar.gz"
sha512sums="91b05bd2974e0a1cb8bd8f01ee90637c9c48da71a4ffa74e161de969f17bedbcda0cfbac128d366ffa5065e8195004fe82763a2a1e8628f0016621b1c2d364f2  unrarsrc-5.0.14.tar.gz"