summaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: afda7828a11f5dc38acc61ea90a4e3afa3529149 (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.2.2
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="69ef5af8442cbb7dfdebe298bfb9c61a  unrarsrc-5.2.2.tar.gz"
sha256sums="4c134a739467dd0a18bd8aaa48f32750335c842d8a27e11b955ccc33a73ac834  unrarsrc-5.2.2.tar.gz"
sha512sums="ae1d9c3009b9e632bffff54553c0ccc347e59a77236b0a76d9fe603285e17229ce295e718ca6e7658fb050a3145a03dcb2daa6e704cd459d2b7a6eb1a101daa3  unrarsrc-5.2.2.tar.gz"