From ce04dbaab13300076e14aff204d640fcf3318f40 Mon Sep 17 00:00:00 2001 From: "Charles E. Kauffman" Date: Fri, 9 Feb 2018 23:16:27 +0700 Subject: system/vifm: Updated for version 0.9.1. Signed-off-by: Willy Sudiarto Raharjo --- system/vifm/vifm.SlackBuild | 23 +++++++++++++++++++++-- system/vifm/vifm.info | 6 +++--- 2 files changed, 24 insertions(+), 5 deletions(-) (limited to 'system') diff --git a/system/vifm/vifm.SlackBuild b/system/vifm/vifm.SlackBuild index 26ccf68f2b..dfbce11323 100644 --- a/system/vifm/vifm.SlackBuild +++ b/system/vifm/vifm.SlackBuild @@ -5,8 +5,11 @@ # Originally Written by V'yacheslav Stetskevych # Modified by Charles E. Kauffman +# [1-31-18] : Added BETA variable to keep with Slackware's packaging rules. +# export VERSION=0.9.1 BETA=beta; sh vifm.SlackBuild + PRGNAM=vifm -VERSION=${VERSION:-0.9} +VERSION=${VERSION:-0.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,6 +40,14 @@ else LIBDIRSUFFIX="" fi +# Since vifm's beta naming breaks Slackware's packaging rules, +# add the beta suffix, then rename before package creation so +# it preserves Slackware's package naming rules. +if [ "$BETA" != "" ] +then + VERSION=$VERSION-$BETA +fi + set -e rm -rf $PKG @@ -67,12 +78,20 @@ make install DESTDIR=$PKG find $PKG/usr/man -type f -exec gzip -9 {} \; + +# If this is a beta package, rename the version to preserve +# Slackware's package naming rules. +if [ "$BETA" != "" ] +then + VERSION=${VERSION//-/_} +fi + # Add the version number to the /usr/doc/vifm directory. # and move it to the correct location. mv $PKG/usr/share/doc $PKG/usr/doc mv $PKG/usr/doc/vifm $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS BUGS COPYING ChangeLog INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS BUGS COPYING ChangeLog INSTALL README TODO THANKS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/system/vifm/vifm.info b/system/vifm/vifm.info index 3a2ed18906..8cdef335f0 100644 --- a/system/vifm/vifm.info +++ b/system/vifm/vifm.info @@ -1,8 +1,8 @@ PRGNAM="vifm" -VERSION="0.9" +VERSION="0.9.1" HOMEPAGE="https://vifm.info" -DOWNLOAD="https://downloads.sourceforge.net/vifm/vifm-0.9.tar.bz2" -MD5SUM="a523a16a7a0170141b5a36cb67251490" +DOWNLOAD="https://downloads.sourceforge.net/vifm/vifm-0.9.1.tar.bz2" +MD5SUM="b3293b1b6fdd14bc2fcab61fdbbd0d05" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3