From fe6a317cdde557f3aa9b03a97d4eb36070e5e961 Mon Sep 17 00:00:00 2001 From: whelan Date: Tue, 10 Mar 2026 08:51:26 -0400 Subject: [PATCH] fix package file --- .SRCINFO | 2 +- PKGBUILD | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index ad648f02817e5..d394dc12e597c 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 = 74 + pkgrel = 78 url = https://github.com/whelanh/scidCommunity arch = x86_64 license = GPL2 diff --git a/PKGBUILD b/PKGBUILD index 60094b3a883da..9b502d27ce1ab 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Hugh Whelan pkgname=scidcommunity pkgver=5.1.2.44 -pkgrel=74 +pkgrel=78 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" @@ -15,8 +15,15 @@ sha256sums=('SKIP') # Safe to skip: integrity verified by commit hash build() { cd "${srcdir}/scidCommunity-${_commit}" - # Configure with final runtime paths (not staging paths) - ./configure --prefix=/usr SHAREDIR=/usr/share/scid + + # Set version via environment variable (configure script checks this) + # The version must match what's in tcl/start.tcl (scidVersionExpected = "5.1.1") + export SCIDCOMMUNITY_VERSION="5.1.1" + + # Configure with runtime paths + ./configure BINDIR=/usr/bin SHAREDIR=/usr/share/scid + + # Build make all } @@ -39,7 +46,9 @@ package() { install -Dm755 scidCommunity "${pkgdir}/usr/bin/scidCommunity" # Install engine - install -Dm755 engines/phalanx-scid/phalanx-scid "${pkgdir}/usr/bin/phalanx-scid" + if [ -f "engines/phalanx-scid/phalanx-scid" ]; then + install -Dm755 engines/phalanx-scid/phalanx-scid "${pkgdir}/usr/bin/phalanx-scid" + fi # Install desktop entry with corrected Exec path install -Dm644 -t "${pkgdir}/usr/share/applications" "flatpak/io.github.whelanh.scidCommunity.desktop"