mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
pkgname=cutechess
|
|
pkgver=1.0.0
|
|
pkgrel=1
|
|
pkgdesc="Graphical user interface, command-line interface and a library for playing chess"
|
|
arch=('x86_64')
|
|
url="https://github.com/cutechess/cutechess"
|
|
license=('GPL3')
|
|
groups=('games')
|
|
depends=('qt5-base' 'qt5-svg')
|
|
source=("https://github.com/$pkgname/$pkgname/archive/gui-$pkgver.tar.gz"
|
|
"cutechess.desktop")
|
|
md5sums=('99c0c4ddf5176cbbe5afcb8db35f57d8'
|
|
'a649152fbf23dc0910550f2a877ff345')
|
|
|
|
build() {
|
|
cd $pkgname-gui-$pkgver
|
|
qmake-qt5
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-gui-$pkgver
|
|
make DESTDIR=$pkgdir install
|
|
mkdir -p $pkgdir/usr/bin/
|
|
mkdir -p $pkgdir/usr/lib/
|
|
mkdir -p $pkgdir/usr/share/icons/hicolor/512x512/apps/
|
|
mkdir -p $pkgdir/usr/share/applications/
|
|
install -Dm 755 projects/gui/cutechess $pkgdir/usr/bin/
|
|
install -Dm 755 projects/cli/cutechess-cli $pkgdir/usr/bin/
|
|
install -Dm 644 projects/lib/libcutechess.a $pkgdir/usr/lib/
|
|
install -Dm 644 projects/gui/res/icons/cutechess_512x512.png $pkgdir/usr/share/icons/hicolor/512x512/apps/cutechess.png
|
|
install -Dm 644 ../cutechess.desktop $pkgdir/usr/share/applications/
|
|
}
|