void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit a6391da3f1558d9580713f37d353ce2de2799807
parent 527d170132035a6ca54249c7e88f74baa128fbee
Author: Dash Eclipse <dash@ezup.dev>
Date:   Wed,  7 Oct 2020 08:07:52 +0000

New package: unrar (unavailable)

Diffstat:
Mezup/pkg-list.txt | 3++-
Asrcpkgs/unrar/template | 24++++++++++++++++++++++++
Asrcpkgs/unrar/update | 1+
3 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/ezup/pkg-list.txt b/ezup/pkg-list.txt @@ -1,7 +1,7 @@ # sed '/^$/d; /^#/d' ezup/pkg-list.txt | awk '{print $1}' #| xargs -L1 ezup/build-pkg.sh -# Tags: #git #fetch #binary #security #nocross +# Tags: #git #fetch #binary #security #nocross #nonfree # Modified packages @@ -11,6 +11,7 @@ pass #git slock scrollback, scrollback-mouse, nordtheme stagit multiline-select +# unrar #nonfree # New packages diff --git a/srcpkgs/unrar/template b/srcpkgs/unrar/template @@ -0,0 +1,24 @@ +# Template file for 'unrar' +pkgname=unrar +version=5.9.4 +revision=1 +wrksrc=unrar +short_desc="Unarchiver for .rar files (non-free version)" +maintainer="Orphaned <orphan@voidlinux.org>" +license="custom:freeware" +homepage="https://www.rarlab.com/rar_add.htm" +distfiles="https://www.rarlab.com/rar/unrarsrc-${version}.tar.gz" +checksum=3d010d14223e0c7a385ed740e8f046edcbe885e5c22c5ad5733d009596865300 +repository=nonfree + +do_build() { + 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 +} diff --git a/srcpkgs/unrar/update b/srcpkgs/unrar/update @@ -0,0 +1 @@ +pkgname=unrarsrc