# Template file for 'unrar' pkgname=unrar version=5.3.9 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 " license="freeware" repository="nonfree" checksum=ff593728aed0ac865908b8ea52cff449a4c298f095db2f3d27438ffbc3e35d5b 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 }