summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 708ac0bd1d4549b4b1254ca825c1140bf1c79d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Peyrille Benjamin <peyrille.benjamin@gmail.com>
# Contributor : Rogalle Quentin <quentin.rogalle@etudiant.univ-perp.fr>
pkgname=othellox
pkgver=0_2
pkgrel=1
pkgdesc="Reversi game in C allowing AI-vs-AI automation"
arch=('any')
url="https://framagit.org/Arkhist/othellox"
license=('MIT')
depends=('ncurses')
makedepends=('clang')
source=("https://framagit.org/Arkhist/othellox/-/archive/master/othellox-master.zip")
sha256sums=('60e6f253c581b37f57b97a25c0127abea310aa18ae0eed8181623577fe97acd8')

prepare() {
	cd "${pkgname}-master"
}

build() {
	cd "${pkgname}-master"
	cd othellogame
	make
}

check() {
	cd "${pkgname}-master"
}

package() {
	cd "$pkgname-master"
	cd othellogame
	install -Dm755 othellox "${pkgdir}/usr/bin/othellox"
	install -Dm655 include/board.h "${pkgdir}/usr/include/othellox/board.h"
	install -Dm655 include/ai/ai_api.h "${pkgdir}/usr/include/othellox/ai_api.h"
	install -Dm655 include/gameState.h "${pkgdir}/usr/include/othellox/gameState.h"
	install -Dm655 basic-ai "${pkgdir}/usr/share/othellox/basic-ai"
	install -Dm655 ordinatrice-ai "${pkgdir}/usr/share/othellox/ordinatrice-ai"
}