k0ste, here's the PKGBUILD which uses the transgui-sdk
package for compilation. That package contains the same FPC and Lazarus versions as those used by the Docker image. This way, users compiling transgui from AUR are going to end up with binaries containing the same functionality as the ones available from GitHub.
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Dobroslaw Kijowski <dobo90_at_gmail.com>
# Contributor: Paul N. Maxwell <msg.maxwel@gmail.com>
pkgbase='transgui'
pkgname=("${pkgbase}-qt")
pkgver='5.18.7.f'
pkgrel=2
pkgdesc='Transmission BitTorrent client'
arch=('x86_64')
_url="https://github.com/lighterowl"
url="${_url}/${pkgbase}"
license=("GPL")
makedepends=(git transgui-sdk=1.3)
source=("git+${url}.git#tag=v5.18.7.f"
"${pkgbase}.desktop")
sha256sums=('SKIP'
'6ee61ee4b01445ef67cc76abaee051c17043b57a743a977a2528a4c78a9a638b')
source /opt/transgui-sdk/source.me
prepare() {
cd "$pkgbase"
git submodule update --init
git checkout -- buildinfo.pas
# https://github.com/transmission-remote-gui/transgui/issues/1486
sed -i -e 's|h <> INVALID_HANDLE_VALUE|h >= 0|' "main.pas"
local -r build=$(git rev-list --abbrev-commit --max-count=1 HEAD)
sed -i "s/@GIT_COMMIT@/$build/" buildinfo.pas
}
package_transgui-qt() {
depends=('qt5pas')
conflicts=('transgui-gtk2-git' 'transgui-qt4-git' 'transmission-remote-gui-qt4'
'transmission-remote-gui-gtk2' 'transmission-remote-gui-bin' 'transgui-gtk')
cd "${srcdir}/${pkgbase}"
install -dm0755 "${pkgdir}/usr/share/${pkgbase}/lang"
install -dm0755 "${pkgdir}/usr/share/doc/${pkgbase}"
install -Dm0755 "units/${pkgbase}" -t "${pkgdir}/usr/bin"
install -Dm0644 "lang/${pkgbase}".* "${pkgdir}/usr/share/${pkgbase}/lang"
install -Dm0644 "README.md" -t "${pkgdir}/usr/share/doc/${pkgbase}"
install -Dm0644 "LICENSE" -t "${pkgdir}/usr/share/doc/${pkgbase}"
install -Dm0644 "${pkgbase}.png" -t "${pkgdir}/usr/share/pixmaps"
install -Dm0644 "../${pkgbase}.desktop" -t "${pkgdir}/usr/share/applications"
rm "${pkgdir}/usr/share/${pkgbase}/lang/${pkgbase}.template"
}
build() {
cd "$pkgbase"
lazbuild "${pkgbase}.lpi" \
--build-mode=Release \
--widgetset=qt5
}
check() {
cd "${pkgbase}/test"
lazbuild "transguitest.lpi"
./units/transguitest -a
}
As noted previously, this only describes transgui-qt
as I don't test or support GTK in any way.
Pinned Comments
k0ste commented on 2025-05-18 08:28 (UTC) (edited on 2025-05-18 08:29 (UTC) by k0ste)
Fork changed to lighterowl/transgui
The original repo seems almost lost any maintainer (last tag from Oct 12, 2019)
If you don't wan't use the @lighterowl fork, please use revision
43d0835ef0514c4526d2e0e0e25213efe8f33ef1