void-packages/srcpkgs/unrar/template
2016-02-26 11:49:16 +00:00

22 lines
615 B
Bash

# Template file for 'unrar'
pkgname=unrar
version=5.3.11
revision=3
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@voidlinux.eu>"
license="freeware"
repository="nonfree"
checksum=77b87af4b2976ef7c6b0c79e071284c2c1b035a9543273ec925f9d92f73b8763
do_build() {
sed -i 's/^\(CXXFLAGS\)=\(.*\)/\1+=\2/' makefile
sed -i 's/^\(LDFLAGS\)=\(.*\)/\1+=-lpthread \2/' makefile
make CXX="$CXX" LD="$LD" STRIP=: -f makefile
}
do_install() {
vbin unrar
vlicense license.txt LICENSE
}