summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 623289cbe9afffa9197c66469bff5c26f3721588 (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
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=nestopia-highscore-git
pkgver=1.52.0.r152.gf431e0f
pkgrel=1
pkgdesc="Highscore port of Nestopia JG"
arch=('x86_64')
url="https://gitlab.com/alice-m/nestopia"
license=('GPL-2.0-or-later')
depends=('libhighscore-git')
makedepends=('git' 'meson')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://gitlab.com/alice-m/nestopia.git')
sha256sums=('SKIP')

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

build() {
  cd nestopia
  arch-meson highscore build
  meson compile -C build
}

check() {
  cd nestopia
  meson test -C build --print-errorlogs
}

package() {
  cd nestopia
  meson install -C build --destdir "$pkgdir"
}