summaryrefslogtreecommitdiffstats
path: root/system/st/st.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/st/st.SlackBuild')
-rw-r--r--system/st/st.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/system/st/st.SlackBuild b/system/st/st.SlackBuild
index 46a4408dee..38aecd74ee 100644
--- a/system/st/st.SlackBuild
+++ b/system/st/st.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for st
-# Copyright 2011-2019, Nikolay Korotkiy <sikmir@gmail.com>
+# Copyright 2011-2020, Nikolay Korotkiy <sikmir@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,8 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Modified by the SlackBuilds.org project
+
PRGNAM=st
-VERSION=${VERSION:-0.8.2}
+VERSION=${VERSION:-0.8.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,13 +72,22 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Now apply any other patches that users might have added
-for i in $(ls $CWD/patches); do
+for i in $(ls $CWD/patches 2>/dev/null); do
echo "Applying patch $i"
patch -p1 < $CWD/patches/$i
done
# Remove "tic" line from Makefile - we cannot do this here!
-sed -i "/^\t@tic/d" Makefile
+#sed -i "/^\t@tic/d" Makefile
+
+# 20200123 bkw: Actually, yes we can:
+sed -i "s|\\<tic\\>|& -o $PKG/usr/share/terminfo|" Makefile
+
+# Above sed command got broken by upstream (they removed the @)
+# so files were being written to the real /usr, not $PKG/usr.
+# Doing it this way means the terminfo stuff is cleanly removed
+# when the package is removed. tic won't create the dir, so:
+mkdir -p $PKG/usr/share/terminfo
[ -f "$CWD/config.h" ] && cp -f $CWD/config.h config.h
@@ -86,10 +97,6 @@ make install \
MANPREFIX=/usr/man \
DESTDIR=$PKG
-# Incluse st.info in package
-mkdir -p $PKG/usr/share/st
-cp st.info $PKG/usr/share/st/
-
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -102,7 +109,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}