summaryrefslogtreecommitdiffstats
path: root/development/vile/vile.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/vile/vile.SlackBuild')
-rw-r--r--development/vile/vile.SlackBuild44
1 files changed, 32 insertions, 12 deletions
diff --git a/development/vile/vile.SlackBuild b/development/vile/vile.SlackBuild
index 9858965aea..10fcac007b 100644
--- a/development/vile/vile.SlackBuild
+++ b/development/vile/vile.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for vile
-# Copyright 2010-2019 Wayne Cuddy Fairfax, VA (USA)
+# Copyright 2010-2022 Wayne Cuddy Fairfax, VA (USA)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -24,10 +24,22 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# 2024-02-23
+# - upgrade upstream version to 9.8z
+#
+# 2022-10-22
+# - upgrade upstream version to 9.8w
+#
+
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=vile
-VERSION=${VERSION:-9.8t}
+VERSION=${VERSION:-9.8z}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +49,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -71,6 +90,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# 20220318 bkw: ac_cv_sys_long_file_names=yes stops it from writing to
+# /usr/lib to check for long filenames.
+
+ac_cv_sys_long_file_names=yes \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -81,23 +104,20 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
-make
-make DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION install install-doc
+make DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION -j1 install install-doc
mkdir -p $PKG/usr/share/pixmaps
-cp icons/vile.* $PKG/usr/share/pixmaps
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+cp icons/*.{xpm,png} $PKG/usr/share/pixmaps
find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES* COPYING INSTALL README* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES* COPYING README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE