summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/disper/disper.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/disper/disper.SlackBuild b/desktop/disper/disper.SlackBuild
index a59116ffde..b55c802451 100644
--- a/desktop/disper/disper.SlackBuild
+++ b/desktop/disper/disper.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for disper
# Copyright 2015 Markus Hutmacher Germany
-# Copyright 2023 Andrew Clemons, Tokyo Japan
+# Copyright 2023-2024 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=disper
VERSION=${VERSION:-0.3.1.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,11 +64,15 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# We need to change PREFIX from /usr/local to /usr
-sed -i 's&usr/local&usr&' Makefile
+sed -i 's,usr/local,usr,' Makefile
+# use python2
+sed -i 's,`src/disper.py,`python2 src/disper.py,' Makefile
make
make install DESTDIR=$PKG
+find $PKG -type f -exec sed -i "s,/usr/bin/python$,/usr/bin/python2,;s,/usr/bin/env python$,/usr/bin/env python2," {} +
+
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