summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf5510cd334ceaff65ea8bd613e0bc741ab942ce (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
# Maintainer: nicolarevelant44 <nicolarevelant44@outlook.com>

pkgname=italian-draughts-git
pkgver=1.3.2.r3.gebb11e5
pkgrel=1
pkgdesc="Italian Draughts, a strategy game for 2 players written in C++"

arch=("x86_64")
depends=("wxwidgets-gtk3")
license=("GPL3")
makedepends=("git" "cmake" "scdoc")
source=("$pkgname"::'git+https://github.com/nicolarevelant/italian-draughts.git'
	'italian-draughts.desktop')
url="https://github.com/nicolarevelant/italian-draughts"
sha256sums=('SKIP'
	'3300918286847221d374ab02600444ecc9fe26d7cd8a90beae02d1a3dceffbf8')

build() {
	cd "$pkgname"
	cmake -B build -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="/usr"
	cmake --build build
}

package() {
	cd "$pkgname"
	cmake --install build --prefix "$pkgdir/usr"
	cd ..
	mkdir -p "$pkgdir/usr/share/applications"
	install -m 644 italian-draughts.desktop "$pkgdir/usr/share/applications"
}

pkgver() {
	cd "$pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}