30 lines
1.5 KiB
Bash
30 lines
1.5 KiB
Bash
# Maintainer: vrubelroman <vrubelroman@gmail.com>
|
|
pkgname=chesspenguin-bin
|
|
_appid=io.github.vrubelroman.chessPenguin
|
|
pkgver=2.2.0
|
|
pkgrel=1
|
|
pkgdesc="Chess database: view, enter and analyse PGN and ChessBase games; Stockfish on request"
|
|
arch=('x86_64')
|
|
url="https://github.com/vrubelroman/chessPenguin"
|
|
license=('GPL-3.0-or-later' 'GPL-3.0-only')
|
|
depends=('glibc' 'gcc-libs' 'alsa-lib' 'libxkbcommon' 'dbus' 'hicolor-icon-theme')
|
|
optdepends=('vulkan-icd-loader: GPU rendering via Vulkan'
|
|
'stockfish: chess engine from the AUR (otherwise the program offers to download it)')
|
|
provides=('chesspenguin')
|
|
conflicts=('chesspenguin')
|
|
options=('!debug')
|
|
source=("${url}/releases/download/v${pkgver}/ChessPenguin-${pkgver}-linux-x86_64.tar.gz")
|
|
sha256sums=('65dce5012845747c0200ff20f00f2aa46ea5e9fe1fb3a42cce1b3a657fdc1bd8')
|
|
|
|
package() {
|
|
cd "ChessPenguin-${pkgver}-linux-x86_64"
|
|
install -Dm755 chesspenguin "${pkgdir}/usr/bin/chesspenguin"
|
|
install -Dm644 "${_appid}.desktop" "${pkgdir}/usr/share/applications/${_appid}.desktop"
|
|
for size in 16 24 32 48 64 128 256 512; do
|
|
install -Dm644 "icons/hicolor/${size}x${size}/apps/${_appid}.png" \
|
|
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${_appid}.png"
|
|
done
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -Dm644 THIRD_PARTY_NOTICES.md "${pkgdir}/usr/share/doc/${pkgname}/THIRD_PARTY_NOTICES.md"
|
|
install -Dm644 examples/classics.pgn "${pkgdir}/usr/share/doc/${pkgname}/examples/classics.pgn"
|
|
}
|