# Contributor: Carlo Landmeter # Maintainer: Natanael Copa 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"