summaryrefslogtreecommitdiff
path: root/system/vifm/vifm.SlackBuild
diff options
context:
space:
mode:
authorCharles E. Kauffman <molbolom@gmail.com>2018-02-09 23:16:27 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-02-09 23:16:27 +0700
commitce04dbaab13300076e14aff204d640fcf3318f40 (patch)
tree4c8a51d8e20de3a2fa5c9758423274ad87683756 /system/vifm/vifm.SlackBuild
parent51c404daf77e68a028617042b22c1f8362e102a3 (diff)
downloadslackbuilds-ce04dbaab13300076e14aff204d640fcf3318f40.tar.gz
system/vifm: Updated for version 0.9.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/vifm/vifm.SlackBuild')
-rw-r--r--system/vifm/vifm.SlackBuild23
1 files changed, 21 insertions, 2 deletions
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