diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2025-05-13 17:49:27 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-05-17 22:33:28 +0700 |
commit | 13a29f04709428bd1a0b485e40e5b3d9efac5c61 (patch) | |
tree | 7b126f0908a472a2038a36c8f822da045a87581d | |
parent | 20c184e542928a581c3626c16b50864e297f690d (diff) |
network/transgui: Fix compiling on lazarus 4.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/transgui/transgui.SlackBuild | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/network/transgui/transgui.SlackBuild b/network/transgui/transgui.SlackBuild index ca7ad023fc..b771a423c1 100644 --- a/network/transgui/transgui.SlackBuild +++ b/network/transgui/transgui.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for transgui -# Copyright 2016-2023 Jeremy Brent Hansen <jebrhansen+SBo -at- gmail.com> +# Copyright 2016-2025 Jeremy Brent Hansen <jebrhansen+SBo@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=transgui VERSION=${VERSION:-5.18.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +38,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 @@ -84,6 +81,10 @@ find -L . \ # https://github.com/transmission-remote-gui/transgui/pull/1329 patch -p1 < $CWD/dup-obj-status.patch +# Change Windows-only code into cross-platform to allow compiling on lazarus 4.0 +# Thanks to Antonio on the notice of the breakage. +sed -i 's|h <> INVALID_HANDLE_VALUE|h >= 0|' main.pas + # Build transgui lazbuild "transgui.lpi" --lazarusdir=/usr/share/lazarus --widgetset=gtk2 |