diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2024-10-07 20:34:10 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-10-12 11:34:33 +0700 |
commit | a62d306906fabfc064b276035e8f94a3d1f72008 (patch) | |
tree | 6faa88a2b8b6246c820e2dd5029cf3b9792e2781 /desktop | |
parent | 774d60935dbd197dc89a2ea3293a85bfbf2f28ce (diff) | |
download | slackbuilds-a62d306906fabfc064b276035e8f94a3d1f72008.tar.gz slackbuilds-a62d306906fabfc064b276035e8f94a3d1f72008.tar.xz |
desktop/disper: Use python2 for python 2.x.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/disper/disper.SlackBuild | 10 |
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 |