desktop/cutechess/PKGBUILD

34 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2016-12-11 00:41:43 +08:00
pkgname=cutechess
2017-08-15 20:29:29 +08:00
pkgver=1.0.0
2016-12-11 00:41:43 +08:00
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")
2017-08-15 20:29:29 +08:00
md5sums=('99c0c4ddf5176cbbe5afcb8db35f57d8'
2016-12-11 00:41:43 +08:00
'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/
}