void-packages/srcpkgs/unrar/template

31 lines
792 B
Text

# Template file for 'unrar'
pkgname=unrar
version=4.2.1
revision=1
wrksrc=unrar
homepage="http://www.rarlab.com/rar"
distfiles="${homepage}/unrarsrc-${version}.tar.gz"
short_desc="Unarchiver for .rar files (non-free version)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="freeware - see /usr/share/licenses/unrar/license.txt"
checksum=d5b59d98a6604ac41916311bc3b5dce1b94858008fc381aa975311d9248542c0
long_desc="
Unrar can extract files from .rar archives. If you want to create .rar
archives, install package rar."
do_build() {
sed -i 's/^\(CXXFLAGS\)=\(.*\)/\1?=\2/' makefile.unix
make ${makejobs} -f makefile.unix
}
do_install() {
vinstall unrar 755 usr/bin
vinstall license.txt 644 usr/share/licenses/unrar
}
unrar_package() {
nonfree="yes"
pkg_install() {
vmove usr
}
}