diff --git a/.SRCINFO b/.SRCINFO index 0165122662fa6..6f8a0fa5029b8 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = scidcommunity pkgdesc = Enhanced fork of Scid chess database with Chess.com/Lichess integration, tablebase lookup, improved search, and additional training features pkgver = 5.1.2.44 - pkgrel = 67 + pkgrel = 68 url = https://github.com/whelanh/scidCommunity arch = x86_64 license = GPL2 diff --git a/PKGBUILD b/PKGBUILD index 5470f190962af..25b4e89e7bfba 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Hugh Whelan pkgname=scidcommunity pkgver=5.1.2.44 -pkgrel=67 +pkgrel=68 pkgdesc="Enhanced fork of Scid chess database with Chess.com/Lichess integration, tablebase lookup, improved search, and additional training features" arch=('x86_64') url="https://github.com/whelanh/scidCommunity" @@ -19,11 +19,26 @@ build() { package() { cd "${srcdir}/scidCommunity-a05338b393e2dcda370617be36c89e521e93675c" - # Install under /usr so desktop/icon files land in standard system paths - make install DESTDIR="${pkgdir}" SHAREDIR="${pkgdir}/usr/share/scid" BINDIR="${pkgdir}/usr/bin" - # Install desktop entry + # Install data files to /usr/share/scid + # Use runtime paths (not staging paths) so the Makefile creates correct paths internally + make install_shared DESTDIR="${pkgdir}" SHAREDIR="/usr/share/scid" + + # Copy binary directly to /usr/bin (avoid broken symlink from make install) + install -Dm755 scidCommunity "${pkgdir}/usr/bin/scidCommunity" + + # Install engine + install -Dm755 engines/phalanx-scid/phalanx-scid "${pkgdir}/usr/bin/phalanx-scid" + + # Install desktop entry with corrected Exec path install -Dm644 -t "${pkgdir}/usr/share/applications" "flatpak/io.github.whelanh.scidCommunity.desktop" + # Fix the desktop file to use absolute path + sed -i 's|^Exec=scidCommunity %f$|Exec=/usr/bin/scidCommunity %f|' "${pkgdir}/usr/share/applications/io.github.whelanh.scidCommunity.desktop" + sed -i 's|^TryExec=scidCommunity$|TryExec=/usr/bin/scidCommunity|' "${pkgdir}/usr/share/applications/io.github.whelanh.scidCommunity.desktop" + # Install application icon install -Dm644 -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps" "flatpak/io.github.whelanh.scidCommunity.svg" + + # Install appdata/metainfo file + install -Dm644 -t "${pkgdir}/usr/share/metainfo" "flatpak/io.github.whelanh.scidCommunity.appdata.xml" }