This commit is contained in:
whelan 2026-03-10 06:18:04 -04:00
parent bd46f34ec5
commit 1ccdc501d5
2 changed files with 20 additions and 5 deletions

View file

@ -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

View file

@ -1,7 +1,7 @@
# Maintainer: Hugh Whelan <brickhousedevelopers@gmail.com>
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"
}