From d307f26cde068dd821bea2ebc2dc71283bb37949 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 1 Jan 2020 15:52:19 -0500 Subject: system/vifm: Updated for version 0.10.1, new maintainer. Signed-off-by: B. Watson Signed-off-by: Robby Workman --- system/vifm/vifm.SlackBuild | 73 ++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 38 deletions(-) (limited to 'system/vifm/vifm.SlackBuild') diff --git a/system/vifm/vifm.SlackBuild b/system/vifm/vifm.SlackBuild index 954455e1b7d9a..1d14ae47c4d04 100644 --- a/system/vifm/vifm.SlackBuild +++ b/system/vifm/vifm.SlackBuild @@ -4,12 +4,21 @@ # Originally Written by V'yacheslav Stetskevych # Modified by Charles E. Kauffman +# Modified by B. Watson -# [1-31-18] : Added BETA variable to keep with Slackware's packaging rules. -# export VERSION=0.9.1 BETA=beta; sh vifm.SlackBuild +# Now maintained by B. Watson . Original version +# had no license; modified version is licensed under the WTFPL. +# See http://www.wtfpl.net/txt/copying/ for details. + +# 20200101 bkw: +# - take over maintenance +# - update for v0.10.1 +# - get rid of BETA kludge (handle beta versions more gracefully). +# script tested with 0.10, 0.10.1-beta, and 0.10.1. I can't be +# bothered to support older versions (you're on your own). PRGNAM=vifm -VERSION=${VERSION:-0.10} +VERSION=${VERSION:-0.10.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,28 +49,24 @@ 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 +# Handle potential VERSION=10.1-beta (hyphen not allowed). +# Accept either -beta or _beta in VERSION, fix it up. I don't +# plan to ever package a beta version, but if I ever do, the +# VERSION in the script will have the underscore, not the hyphen. +SRCVER="$( echo $VERSION | sed 's,_,-,g' )" +VERSION="$( echo $SRCVER | sed 's,-,_,g' )" + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2 +cd $PRGNAM-$SRCVER chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -70,29 +75,21 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --build=$ARCH-slackware-linux -# Since datarootdir doesn't work as expected, modify Makefile for png and desktop files. -sed -i -e 's;dir)/applications;rootdir)/applications;' -e 's;dir)/pixmaps;rootdir)/pixmaps;' src/Makefile - make -make install DESTDIR=$PKG - -find $PKG/usr/man -type f -exec gzip -9 {} \; +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man?/*.? +DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/$PRGNAM/* $DOCDIR +rm -rf $PKG/usr/share/doc -# 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 +# Include only the vim instructions from INSTALL, nobody cares about compile +# instructions (especially not Windows ones) when using a binary package. +rm -f $DOCDIR/INSTALL +sed -n '/^Vim Specific/,$p' INSTALL > $DOCDIR/README_vim.txt -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 +cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -- cgit v1.2.3