system/sargon: Fix build with newer google-go-lang.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-02-28 22:57:18 +13:00 committed by Willy Sudiarto Raharjo
parent 50d4b76af8
commit 3aea18a9ca
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 7 additions and 3 deletions

View File

@ -58,6 +58,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
patch -p1 -i $CWD/d6487688ab7ef2a9d47cb9f67cdedc0c498ff3d3.patch
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -71,7 +72,8 @@ if [ -x /etc/profile.d/go.sh ]; then
fi
# Build the project
go mod init sargon
go mod tidy
go mod download
go build
# Create installation filesystem

View File

@ -1,8 +1,10 @@
PRGNAM="sargon"
VERSION="1.0"
HOMEPAGE="https://github.com/graygnuorg/sargon"
DOWNLOAD="https://github.com/graygnuorg/sargon/archive/v1.0/sargon-1.0.tar.gz"
MD5SUM="158b725c02b4bdf377d2b08790f2a770"
DOWNLOAD="https://github.com/graygnuorg/sargon/archive/v1.0/sargon-1.0.tar.gz \
https://github.com/graygnuorg/sargon/commit/d6487688ab7ef2a9d47cb9f67cdedc0c498ff3d3.patch"
MD5SUM="158b725c02b4bdf377d2b08790f2a770 \
703a3e5ae6f79ccd579e74cf7151c39f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="google-go-lang"