aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/APKBUILD
blob: bc03e12df8df8898d615168e27c917283f0bc835 (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.3
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="1c14a30052bf5e0b1a02fd9e3e638452  unrarsrc-5.2.3.tar.gz"
sha256sums="d249d34541dba39234cdf661ccec80e44334efe50c3ca1d7c51186cd5d26e072  unrarsrc-5.2.3.tar.gz"
sha512sums="94ff765c2aa4ede7d5f2f35c3c35c634b7691559ac9bc978a4f760e22e005422a3a0d36ab09e4c492cea456161cc13dbf256eb2ead23a7976e79bf3cc89903ed  unrarsrc-5.2.3.tar.gz"