summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7254d8d04a0702e2545bd003061a1f33341dc97 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com>

pkgname=highscore-git
pkgver=40.0.r222.ge25d33e5
pkgrel=1
pkgdesc="Highscore is a retro gaming application for the GNOME desktop"
arch=('x86_64')
url="https://gitlab.gnome.org/World/highscore"
license=('GPL3')
depends=('tracker' 'grilo' 'grilo-plugins' 'glib2' 'libsass' 'sassc' 'gtk4' 'libadwaita' 'libhandy' 'libevdev' 'libmanette' 'libarchive' 'retro-gtk-git' 'librsvg' 'libsoup' 'sqlite' 'libxml2')
makedepends=('git' 'cmake' 'meson' 'gcc' 'vala')
optdepends=('kodi-addon-game-libretro: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-beetle-psx: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-desmume: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-flycast: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-gambatte: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-melonds: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-mgba: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-mupen64plus-nx: Nintendo64 mupen64plus-next for kodi'
  'kodi-addon-game-libretro-nestopia: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-parallel-n64: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-scummvm: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-snes9x: Libretro wrapper for Kodis Game API'
  'kodi-addon-game-libretro-yabause: Libretro wrapper for Kodis Game API'
  'libretro-beetle-pce: NEC PC Engine/SuperGrafx/CD core'
  'libretro-beetle-pce-fast: NEC PC Engine/CD core'
  'libretro-beetle-psx: Sony PlayStation core'
  'libretro-beetle-psx-hw: Sony PlayStation core'
  'libretro-beetle-supergrafx: NEC SuperGrafx core'
  'libretro-blastem: Sega Mega Drive core'
  'libretro-bsnes: Super Nintendo Entertainment System cores'
  'libretro-bsnes2014: Super Nintendo Entertainment System cores'
  'libretro-bsnes-hd: Super Nintendo Entertainment System core'
  'libretro-citra: Nintendo 3DS core'
  'libretro-core-info: Libretro core info files'
  'libretro-desmume: Nintendo DS core'
  'libretro-dolphin: Nintendo GC/Wii core'
  'libretro-duckstation: Sony PlayStation core'
  'libretro-flycast: Sega Dreamcast core'
  'libretro-gambatte: Nintendo Game Boy/Game Boy Color core'
  'libretro-genesis-plus-gx: Sega MS/GG/MD/CD core'
  'libretro-kronos: Sega Saturn core'
  'libretro-melonds: Nintendo DS core'
  'libretro-mesen: Nintendo Entertainment System core'
  'libretro-mesen-s: Super Nintendo Entertainment System core'
  'libretro-mgba: Nintendo Game Boy Advance core'
  'libretro-mupen64plus-next: Nintendo 64 core'
  'libretro-nestopia: Nintendo Entertainment System core'
  'libretro-overlays: Collection of overlays for libretro'
  'libretro-parallel-n64: Nintendo 64 core'
  'libretro-pcsx2: Sony PlayStation 2 core'
  'libretro-picodrive: Sega MS/MD/CD/32X core'
  'libretro-play: Sony PlayStation 2 core'
  'libretro-ppsspp: Sony PlayStation Portable core'
  'libretro-retrodream: Sega Dreamcast core'
  'libretro-sameboy: Nintendo Game Boy/Game Boy Color core'
  'libretro-scummvm: ScummVM core'
  'libretro-shaders-slang: Collection of shaders for libretro'
  'libretro-snes9x: Super Nintendo Entertainment System core'
  'libretro-yabause: Sega Saturn core'
  'retroarch: Reference frontend for the libretro API')
checkdepends=('appstream-glib')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=('gnome-games')
source=(git+$url.git)
sha256sums=(SKIP)

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

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

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

package() {
  DESTDIR="${pkgdir}" meson install -C build
}