aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-07 11:41:17 +0200
committerDanilo M. <danix@danix.xyz>2026-09-07 11:41:17 +0200
commit07ef80945c9c7c493fd0017e559fad0a26b84c17 (patch)
tree9f9e7344dfcb8874f06289f9351b4e3dfa82b35b
parent099f2af4bfae857f62bef3c3fe864e0b9e67e396 (diff)
downloadmy-slackbuilds-07ef80945c9c7c493fd0017e559fad0a26b84c17.tar.gz
my-slackbuilds-07ef80945c9c7c493fd0017e559fad0a26b84c17.zip
qtmaildir: fix version string by disabling build number
QTMAILDIR_BUILD_NUMBER is ON upstream so developers can distinguish builds of an unreleased version. In a package it makes the release report "0.27.0 build 1", numbering a release after a counter that restarts in every fresh build directory. Turn it off. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016yeUGcX28FHJNQMtkzqx5e
-rw-r--r--qtmaildir/qtmaildir.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/qtmaildir/qtmaildir.SlackBuild b/qtmaildir/qtmaildir.SlackBuild
index e9bf63f..907f7e4 100644
--- a/qtmaildir/qtmaildir.SlackBuild
+++ b/qtmaildir/qtmaildir.SlackBuild
@@ -78,6 +78,11 @@ find -L . \
# QTMAILDIR_BUILD_TESTS=OFF skips the test suite, which needs Qt6::Test and
# builds nothing that ships.
+#
+# QTMAILDIR_BUILD_NUMBER=OFF keeps the version a clean X.Y.Z. That option is
+# ON upstream so a developer can tell one build of an unreleased version from
+# another, and it would make this package report "0.27.0 build 1", numbering a
+# release after a counter that starts at 1 in every fresh build directory.
mkdir -p build
cd build
cmake \
@@ -86,6 +91,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DQTMAILDIR_BUILD_TESTS=OFF \
+ -DQTMAILDIR_BUILD_NUMBER=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG