unrar: update to 5.7.1.

This commit is contained in:
maxice8 2019-01-30 07:15:44 -02:00 committed by maxice8
parent 1c92c4d665
commit 797aa66460
1 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'unrar'
pkgname=unrar
version=5.6.8
version=5.7.1
revision=1
wrksrc=unrar
short_desc="Unarchiver for .rar files (non-free version)"
@ -8,14 +8,16 @@ maintainer="Juan RP <xtraeme@voidlinux.org>"
license="freeware"
homepage="https://www.rarlab.com/rar_add.htm"
distfiles="https://www.rarlab.com/rar/unrarsrc-${version}.tar.gz"
checksum=a4cc0ac14a354827751912d2af4a0a09e2c2129df5766576fa7e151791dd3dff
checksum=d208abcceecfee0084bb8a93e9b756319d906a3ac6380ee5d10285fb0ffc4d65
repository=nonfree
do_build() {
sed -i -e 's/^\(CXXFLAGS\)=\(.*\)/\1+=\2/' \
-e 's/^\(LDFLAGS\)=\(.*\)/\1+=-lpthread \2/' makefile
vsed -e 's/^\(CXXFLAGS\)=\(.*\)/\1+=\2/' \
-e 's/^\(LDFLAGS\)=\(.*\)/\1+=-lpthread \2/' \
-i makefile
make CXX="$CXX" LD="$LD" STRIP=: -f makefile
}
do_install() {
vbin unrar
vlicense license.txt LICENSE