summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 300a057aff3296c825215476e72b3de096c69ca3 (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: Mark Wagie <mark dot wagie at proton dot me>
pkgname=mednafen-highscore-git
pkgver=1.32.1.r64.gfc1d233
pkgrel=1
pkgdesc="Highscore port of Mednafen"
arch=('x86_64')
url="https://github.com/highscore-emu/mednafen-highscore"
license=('GPL-2.0-or-later')
depends=(
  'libchdr'
  'libhighscore-git'
  'libvorbis'
  'zstd'
)
makedepends=(
  'git'
  'meson'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/highscore-emu/mednafen-highscore.git')
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${pkgname%-git}"
  arch-meson highscore build
  meson compile -C build
}

package() {
  cd "${pkgname%-git}"
  meson install -C build --no-rebuild --destdir "$pkgdir"
}