From 919c1fc56cdbbfb40ee39d695c7bc57012748f16 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 21 Nov 2011 11:52:21 +0100 Subject: [PATCH] unrar: update to 4.1.2, set nonfree. --- srcpkgs/unrar/template | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/srcpkgs/unrar/template b/srcpkgs/unrar/template index 00c6947e47..5c5a4ca6d0 100644 --- a/srcpkgs/unrar/template +++ b/srcpkgs/unrar/template @@ -1,24 +1,24 @@ # Template file for 'unrar' pkgname=unrar -version=3.9.10 +version=4.1.2 wrksrc=unrar -distfiles="http://www.rarlab.com/rar/unrarsrc-$version.tar.gz" -revision=1 +nonfree=yes +homepage="http://www.rarlab.com/rar" +distfiles="${homepage}/unrarsrc-${version}.tar.gz" short_desc="Unarchiver for .rar files (non-free version)" maintainer="Juan RP " -checksum=3b4627d8f5700588bc594afee6911865f55201625299f414438a654da488207a +license="freeware - see /usr/share/licenses/unrar/license.txt" +checksum=b2e55e2c417634a76a5b593844234579f965d384b02fff83c524da37b473453d long_desc=" Unrar can extract files from .rar archives. If you want to create .rar archives, install package rar." -do_build() -{ +do_build() { + sed -i 's/^\(CXXFLAGS\)=\(.*\)/\1?=\2/' makefile.unix make ${makejobs} -f makefile.unix } -do_install() -{ - install -D -m755 ${wrksrc}/unrar ${DESTDIR}/usr/bin/unrar - install -D -m644 license.txt \ - ${DESTDIR}/usr/share/licenses/unrar/license.txt +do_install() { + vinstall unrar 755 usr/bin + vinstall license.txt 644 usr/share/licenses/unrar }