summaryrefslogtreecommitdiff
path: root/development/tkdiff/tkdiff.SlackBuild
diff options
context:
space:
mode:
authorDuncan Roe <duncan_roe@optusnet.com.au>2020-11-20 15:54:56 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-22 01:14:20 +0700
commit4e0a281ecba84208cfda3622c6cc55c62e1cea77 (patch)
tree243e4b06c8a2f6dcbc691c5c9118c600efab844d /development/tkdiff/tkdiff.SlackBuild
parent9cffe6a94560d0874e4c72bae16de065ecdfccab (diff)
downloadslackbuilds-4e0a281ecba84208cfda3622c6cc55c62e1cea77.tar.gz
development/tkdiff: Updated for version 5.1.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/tkdiff/tkdiff.SlackBuild')
-rw-r--r--development/tkdiff/tkdiff.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/development/tkdiff/tkdiff.SlackBuild b/development/tkdiff/tkdiff.SlackBuild
index 046113c60f..c98cda8637 100644
--- a/development/tkdiff/tkdiff.SlackBuild
+++ b/development/tkdiff/tkdiff.SlackBuild
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tkdiff
-VERSION=${VERSION:-5.0}
+VERSION=${VERSION:-5.1}
+SRCVERSION=$( echo $VERSION | tr . - )
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -34,9 +35,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-TAR=${TAR:-unzip} #tar xvf
-SOURCE=${SOURCE:-tkdiff-5-0}
-TARFILE=${TARFILE:-tkdiff-5-0.zip}
+TAR=${TAR:-unzip}
+SOURCE=${SOURCE:-$PRGNAM-$SRCVERSION}
+TARFILE=${TARFILE:-$SOURCE.zip}
set -e
@@ -52,8 +53,8 @@ find -L . \
-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 {} \;
-mkdir -p $PKG/usr/bin
-cp -a $PRGNAM $PKG/usr/bin
+
+install -D -m 0755 $PRGNAM $PKG/usr/bin/$PRGNAM
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