summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 317ed3926354614a49cfc63817109b6270373d46 (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
# Maintainer: Thermoflux <thermoflux at github dot com>
pkgname=curseofwar-sdl
pkgver=v1.3.0.2.g6292ca8  # Replace with the actual version
pkgrel=1
pkgdesc="A fast-paced action strategy game with SDL support"
arch=('x86_64')
url="https://a-nikolaev.github.io/curseofwar/"
license=('GPL3')
depends=('sdl2')  # This might be sdl or sdl2, check the specific dependency
makedepends=('git')
source=("git+https://github.com/a-nikolaev/curseofwar.git")  # The Git repository
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/curseofwar"
    git describe --tags | sed 's/-/./g'
}

build() {
  echo "Building at location $srcdir"
  # Dont comment pkgver here, as it also changes directory to source dir
  pkgver 
  make SDL=yes  # This is based on the provided build instructions
}

package() {
  cd "$srcdir/curseofwar"
  echo "Installing at location: $pkgdir/usr/bin/curseofwar-sdl"
  make SDL=yes DESTDIR=$pkgdir install
}