aboutsummaryrefslogtreecommitdiff
path: root/desktop/gopsuinfo/gopsuinfo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gopsuinfo/gopsuinfo.SlackBuild')
-rw-r--r--desktop/gopsuinfo/gopsuinfo.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/gopsuinfo/gopsuinfo.SlackBuild b/desktop/gopsuinfo/gopsuinfo.SlackBuild
index 9ad4b91a8d3d..bd33d49e0de9 100644
--- a/desktop/gopsuinfo/gopsuinfo.SlackBuild
+++ b/desktop/gopsuinfo/gopsuinfo.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for gopsuinfo
-# Copyright 2023 Jay Lanagan (j@lngn.net), Detroit, MI, USA.
+# Copyright 2023,2024 Jay Lanagan (j@lngn.net), Detroit, MI, USA.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gopsuinfo
-VERSION=${VERSION:-0.1.5}
+VERSION=${VERSION:-0.1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -85,11 +85,11 @@ find -L . \
CGO_CFLAGS="$SLKCFLAGS" \
CGO_CXXFLAGS="$SLKCFLAGS" \
-go build -o bin/$PRGNAM *.go || exit 1
+go build -mod vendor -mod=readonly -o bin/$PRGNAM *.go || exit 1
-install -D -t $PKG/usr/share/$PRGNAM/icons_light $TMP/$PRGNAM-$VERSION/icons_light/*
-install -D -t $PKG/usr/share/$PRGNAM/icons_dark $TMP/$PRGNAM-$VERSION/icons_dark/*
-install -Dm755 -t $PKG/usr/bin $TMP/$PRGNAM-$VERSION/bin/$PRGNAM
+install -Dm0644 -t $PKG/usr/share/$PRGNAM/icons_light icons_light/*
+install -Dm0644 -t $PKG/usr/share/$PRGNAM/icons_dark icons_dark/*
+install -Dm0755 -t $PKG/usr/bin 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