aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2024-10-05 02:08:24 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-05 02:36:43 +0700
commit928ec02eab49aee064943b5e3aa75f67d1a2e015 (patch)
tree8407654d2c3bbc0cadc14b911cec377aa7378d13
parent6276db13fe381d778d247ad4e17d8dd21b8265e4 (diff)
development/reuse-tool: Updated for version 4.0.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/reuse-tool/changelog11
-rw-r--r--development/reuse-tool/reuse-tool.SlackBuild25
-rw-r--r--development/reuse-tool/reuse-tool.info8
3 files changed, 20 insertions, 24 deletions
diff --git a/development/reuse-tool/changelog b/development/reuse-tool/changelog
deleted file mode 100644
index b7a2e829c0226..0000000000000
--- a/development/reuse-tool/changelog
+++ /dev/null
@@ -1,11 +0,0 @@
-Changelog for reuse-tool SlackBuild Script
---------------------------------------------------------------------
-
-05/11/2022:
-
-Added to slackbuilds.org
-
-15/05/2023:
-
-updated Deps
-Updated to version 1.1.2
diff --git a/development/reuse-tool/reuse-tool.SlackBuild b/development/reuse-tool/reuse-tool.SlackBuild
index b359217c42f73..b7a4b63117900 100644
--- a/development/reuse-tool/reuse-tool.SlackBuild
+++ b/development/reuse-tool/reuse-tool.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for reuse-tool
-# Copyright 2022-2023 Vijay Marcel
+# Copyright 2022-2024 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+##########################################changelog############################
+
+# 05/11/2022: Added to slackbuilds.org
+
+# 15/05/2023: updated Deps and Updated to version 1.1.2
+
+# 10/04/2024: updated to version 4.0.3
+
+#################################################################################
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=reuse-tool
-VERSION=${VERSION:-1.1.2}
+VERSION=${VERSION:-4.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +48,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -80,14 +87,14 @@ 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 {} \;
-python3 -m build --wheel --no-isolation
+CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 -m build --wheel --no-isolation
python3 -m installer --destdir="$PKG" dist/*.whl
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
+ | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS.rst CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md docs LICENSES/* $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -pv $PKG/usr/doc/$PRGNAM-$VERSION
+cp -av AUTHORS.rst CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md docs LICENSES/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -rvf $PKG/usr/doc/reuse-tool-1.0.0/docs/_static
diff --git a/development/reuse-tool/reuse-tool.info b/development/reuse-tool/reuse-tool.info
index 8a2b048d6f568..41077b409773d 100644
--- a/development/reuse-tool/reuse-tool.info
+++ b/development/reuse-tool/reuse-tool.info
@@ -1,10 +1,10 @@
PRGNAM="reuse-tool"
-VERSION="1.1.2"
+VERSION="4.0.3"
HOMEPAGE="https://reuse.software"
-DOWNLOAD="https://github.com/fsfe/reuse-tool/archive/v1.1.2/reuse-tool-1.1.2.tar.gz"
-MD5SUM="b99af0a2301b78a815f029e82be7b0aa"
+DOWNLOAD="https://github.com/fsfe/reuse-tool/archive/v4.0.3/reuse-tool-4.0.3.tar.gz"
+MD5SUM="3d42b59407e9c9a1e29076cc5914844b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-wheel python3-poetry-core binaryornot license-expression python-debian"
+REQUIRES="python3-wheel binaryornot license-expression python-debian python3-attrs python3-tomlkit"
MAINTAINER="Vijay Marcel"
EMAIL="vijaymarcel@outlook.com"