# Maintainer: Zoheb Shujauddin <zoheb2424@gmail.com>
pkgname=game-of-ur
pkgver=0.4.2
pkgrel=2
epoch=
pkgdesc="A 3D adaptation of an ancient, competitive board game."
arch=('x86_64')
url="https://www.github.com/raynmetal/game-of-ur"
license=('MIT')
groups=()
depends=(
    'sdl3'
    'sdl3_mixer'
    'sdl3_ttf'
    'sdl3_image'
    'glew'
    'glm'
    'nlohmann-json'
    'assimp'
    'doctest'
)
makedepends=('cmake')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
    "$pkgname-$pkgver-Source.tar.gz"
)
noextract=()
sha256sums=('4a310f6c84a74e571107fd939134d6eda93b37d8b31236f5fd6ecec0fd1c1bd4')
validpgpkeys=()

build() {
    local cmake_options=(
        -B build
        -S $pkgname-$pkgver-Source/$pkgname-$pkgver
        -W no-author
        -D CMAKE_INSTALL_PREFIX=/usr
    )
    cmake "${cmake_options[@]}"
    cmake --build build
}

package() {
    DESTDIR="$pkgdir/" cmake --install build
}
