From 809febf9ca4c26be9786af59e0562c66976e50c1 Mon Sep 17 00:00:00 2001 From: whelan Date: Tue, 10 Mar 2026 08:16:01 -0400 Subject: [PATCH] fix package file --- .SRCINFO | 2 +- PKGBUILD | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 5fb32ea769c92..bd4c5a664d6ea 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 = 72 + pkgrel = 73 url = https://github.com/whelanh/scidCommunity arch = x86_64 license = GPL2 diff --git a/PKGBUILD b/PKGBUILD index 4cbf539f34d72..beafaf057659e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,13 @@ # Maintainer: Hugh Whelan pkgname=scidcommunity pkgver=5.1.2.44 -pkgrel=72 +pkgrel=73 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" license=('GPL2') depends=('tcl' 'tk') makedepends=('gcc' 'make' 'git') - # Commit hash that includes the ui_tcltk.h fix for system-wide installations _commit="3696c46722013f52c3f4f418c28a04f9da5046fb" source=("${pkgname}-${pkgver}.tar.gz::https://github.com/whelanh/scidCommunity/archive/${_commit}.tar.gz") @@ -16,36 +15,37 @@ sha256sums=('SKIP') # Safe to skip: integrity verified by commit hash build() { cd "${srcdir}/scidCommunity-${_commit}" - # Configure with runtime paths (will be re-configured in package() for staging) - ./configure --prefix=/usr + # Configure once with final runtime paths + ./configure --prefix=/usr SHAREDIR=/usr/share/scid make all } package() { cd "${srcdir}/scidCommunity-${_commit}" - - # Re-run configure with staging paths so Makefile uses correct directories - ./configure SHAREDIR="${pkgdir}/usr/share/scid" BINDIR="${pkgdir}/usr/bin" - - # Install data files - make install_shared - - # Copy binary directly to /usr/bin (avoid broken symlink from make install) + + # Create necessary directories + install -dm755 "${pkgdir}/usr/bin" + install -dm755 "${pkgdir}/usr/share/scid" + + # Install data files using DESTDIR + make DESTDIR="${pkgdir}" install_shared + + # Copy binary directly to /usr/bin 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" } -