summaryrefslogtreecommitdiffstats
path: root/network/goimapnotify/goimapnotify.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/goimapnotify/goimapnotify.SlackBuild')
-rw-r--r--network/goimapnotify/goimapnotify.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/network/goimapnotify/goimapnotify.SlackBuild b/network/goimapnotify/goimapnotify.SlackBuild
index 3dc76eb4a5..4f84f8f0b9 100644
--- a/network/goimapnotify/goimapnotify.SlackBuild
+++ b/network/goimapnotify/goimapnotify.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for goimapnotify
-# Copyright 2022 Alexander Verbovetsky Moscow Russia
+# Copyright 2022-2024 Alexander Verbovetsky Moscow Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=goimapnotify
-VERSION=${VERSION:-2.3.7}
+VERSION=${VERSION:-2.3.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,15 +70,17 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+cat $CWD/go.mod > go.mod
+cat $CWD/go.sum > go.sum
mkdir -p vendor
cat $CWD/modules.txt > vendor/modules.txt
for DIR in $(grep -o "^# .* " vendor/modules.txt | cut -d' ' -f2)
do
- NAME=$(basename $DIR)
- NAME=${NAME%.*}
+ NAME=$(echo $DIR | sed 's/[./]v[0-9]\+$//' | xargs basename)
DIR=vendor/$DIR
+ find -L $CWD -maxdepth 1 -type f -regex ".*/${NAME}-[^-]*\.tar\.gz" \
+ -exec tar xvf '{}' \;
mkdir -p $(dirname $DIR)
- find -L $CWD -type f -regex ".*/${NAME}-[^-]*\.tar\.gz" -exec tar xvf {} \;
mv ${NAME}-* $DIR
done
@@ -89,13 +91,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-[ -z "$GOROOT" ] && source /etc/profile.d/go.sh
-
CGO_CFLAGS="$SLKCFLAGS" \
CGO_CXXFLAGS="$SLKCFLAGS" \
go build
-install -sDm 755 goimapnotify $PKG/usr/bin/goimapnotify
+install -sDm 755 goimapnotify -t $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGELOG.rst README.md $PKG/usr/doc/$PRGNAM-$VERSION