aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: 072b1c99579c75b9cf9d8b941742310dcef1d816 (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.6
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="86736fdc652dcbedddac6ac1dff3115a  unrarsrc-5.2.6.tar.gz"
sha256sums="c06c7c74dce6151d9653a81f1efb45d8bc89f8f5843489b393855ae11c19f22e  unrarsrc-5.2.6.tar.gz"
sha512sums="dd86faaceccfd8005d7be83e18b206eda73d20574e43d04b199f3feb521d59f392a5709aa1795d849acf281aea21dc3969b3a08c7941746967d7bec018a30edb  unrarsrc-5.2.6.tar.gz"