# Maintainer: bzt <https://codeberg.org/tirnanog/player/issues>
pkgname=tngp-git
pkgver=0.0.1
pkgrel=1
pkgdesc="tngp is an application to play Adventure and Action RPG Games in the TirNanoG File Format"
arch=('aarch64' 'x86_64')
url="https://tirnanog.codeberg.page/player"
license=('GPL3')
depends=()
makedepends=(make tar curl)
optdepends=()
provides=('tngp')
conflicts=('tngp')

_gitname=player

build() {
	echo "Getting latest TirNanoG Player Source Code..."
	curl -L "https://codeberg.org/tirnanog/player/archive/main.tar.gz" --output $_gitname.tar.gz

	echo "Extracting $_gitname.tar.gz..."
	tar -xf $_gitname.tar.gz
	cd $_gitname/src

	echo "Building TirNanoG Player..."
	make clean all
}

package() {
	echo "Installing TirNanoG Player..."

	cd $_gitname/src
	INSTDIR=/usr make install
}
