aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: ba32b237d81d99bf22530865a224de480d4d7bd1 (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.3.4
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="60afbc74a97eff512a6c42425ec43bbf  unrarsrc-5.3.4.tar.gz"
sha256sums="ce4767b8532f0866c609ec99a0b4d21a2f6cb8a786b15092ddf608ec4904b874  unrarsrc-5.3.4.tar.gz"
sha512sums="8f1dab09aa51c2aa877165526838edf0a62fe460d334381aca6eee01a04e46b0093694f4eb75ecf0c0cf5de96cc97339e6dbe0a188aba1e8d2782605d48a6ca7  unrarsrc-5.3.4.tar.gz"