|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
# Slackware build script for gopsuinfo |
|
|
|
|
|
|
|
# Copyright 2023,2024 Jay Lanagan (j@lngn.net), Detroit, MI, USA. |
|
|
|
# Copyright 2023-2025 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.6} |
|
|
|
VERSION=${VERSION:-0.1.9} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
@ -75,7 +75,7 @@ cd $TMP |
|
|
|
rm -rf $PRGNAM-$VERSION |
|
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z || tar xvf $CWD/v$VERSION.tar.?z |
|
|
|
cd $PRGNAM-$VERSION |
|
|
|
tar xvf $CWD/gopsuinfo-vendor-$VERSION.tar.?z |
|
|
|
#tar xvf $CWD/gopsuinfo-vendor-$VERSION.tar.?z |
|
|
|
chown -R root:root . |
|
|
|
find -L . \ |
|
|
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |
|
|
|
@ -85,7 +85,8 @@ find -L . \ |
|
|
|
|
|
|
|
CGO_CFLAGS="$SLKCFLAGS" \ |
|
|
|
CGO_CXXFLAGS="$SLKCFLAGS" \ |
|
|
|
go build -mod vendor -mod=readonly -o bin/$PRGNAM *.go || exit 1 |
|
|
|
#go build -mod vendor -mod=readonly -o bin/$PRGNAM *.go || exit 1 |
|
|
|
go build -o bin/$PRGNAM *.go || exit 1 |
|
|
|
|
|
|
|
install -Dm0644 -t $PKG/usr/share/$PRGNAM/icons_light icons_light/* |
|
|
|
install -Dm0644 -t $PKG/usr/share/$PRGNAM/icons_dark icons_dark/* |
|
|
|
|