ochess/tools/packages/archlinux/PKGBUILD

38 lines
987 B
Text
Raw Normal View History

2023-04-30 16:29:19 +02:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
2022-02-23 18:11:55 +01:00
2023-04-30 16:29:19 +02:00
# Maintainer: Loic Guegan <loic.guegan@mailbox.org>
2022-02-23 18:11:55 +01:00
pkgname=ochess
2023-05-03 08:58:59 +02:00
pkgver=v0.0.2
2023-04-30 16:29:19 +02:00
pkgrel=1
epoch=
pkgdesc="Chess game analysis software written in c++"
arch=("any")
url="https://gitlab.com/manzerbredes/ochess"
license=('GPLv3')
groups=()
depends=(wxwidgets-gtk3)
makedepends=(cmake wxwidgets-common)
2023-05-03 08:58:59 +02:00
source=("http://loicguegan.com/files_/ochess-v0.0.2.tar.gz")
sha256sums=(fb23b73c1cefc9b4c13f1f610f30d95d47020d5388cf4ee40ce3605a5d39e25c) #generate with 'makepkg -g'
2023-04-30 16:29:19 +02:00
prepare() {
cd "$srcdir/$pkgname-$pkgver"
}
2022-02-23 18:11:55 +01:00
build() {
2023-04-30 16:29:19 +02:00
cd "$srcdir/$pkgname-$pkgver"
mkdir -p build
cd build
cmake ../
make -j4
2022-02-23 18:11:55 +01:00
}
package() {
2023-05-03 08:58:59 +02:00
cd "$srcdir/$pkgname-$pkgver"
2023-04-30 16:29:19 +02:00
cd build
install -Dm775 ochess "${pkgdir}/usr/bin/ochess"
2022-02-23 18:11:55 +01:00
}