summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abde86f30924b2d237fadb662f3799243f9a70d6 (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
# Maintainer: 
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Kevin Majewski <kevin.majewski02@gmail.com>
# Contributor: Svitozar Cherepii <razotivs@gmail.com>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Tom Richards <tom@tomrichards.net>
# Contributor: TingPing <tingping@tingping.se>
# Contributor: Omar Pakker <omar.pakker@oracle.com>
pkgname=retro-gtk-git
pkgver=1.0.2.r61.g9033b2a
pkgrel=1
pkgdesc="The GTK Libretro frontend framework"
arch=('x86_64' 'aarch64')
url="https://wiki.gnome.org/Apps/Games"
license=('GPL-3.0-or-later')
depends=('libepoxy' 'glib2' 'gtk4' 'libpulse' 'libsamplerate')
makedepends=('git' 'gobject-introspection' 'meson' 'vala')
provides=("${pkgname%-git}" 'libretro-gtk-2.so')
conflicts=("${pkgname%-git}")
source=('git+https://gitlab.gnome.org/GNOME/retro-gtk.git')
sha256sums=('SKIP')

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

build() {
  arch-meson "${pkgname%-git}" build \
    -D build-doc=true \
    -D install-doc=true
  meson compile -C build
}

#check() {
  # Tests try to run the installed /usr/lib/retro-runner

#  dbus-run-session xvfb-run \
#    -s '-screen 0 1920x1080x24 -nolisten local' \
#    meson test -C build --print-errorlogs
#}

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