summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cea5f1a61d6c68574bea75bf38921b4b6edb6a4 (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: Nadia Holmquist Pedersen <nadia@nhp.sh>

_pkgbase=nanoboyadvance
pkgbase="${_pkgbase}-git"
pkgname="${_pkgbase}-git"
pkgdesc="Accuracy-focused Game Boy Advance emulator."
pkgver=1.7.1.r97.g00110eac
pkgrel=1
arch=(x86_64 aarch64)
url="https://github.com/nba-emu/NanoBoyAdvance"
license=(GPL-3.0-or-later)
makedepends=(cmake git python-jinja python-lxml)
depends=(qt5-base sdl2 fmt)

source=("git+https://github.com/nba-emu/NanoBoyAdvance.git")
sha256sums=('SKIP')

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

build() {
	cd "$srcdir/NanoBoyAdvance"
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DPORTABLE_MODE=OFF \
		-DUSE_SYSTEM_FMT=ON \
		-DCMAKE_INSTALL_PREFIX=/usr

	cmake --build build
}

package() {
	cd "$srcdir/NanoBoyAdvance"

	DESTDIR="$pkgdir" cmake --install build
}