aboutsummaryrefslogtreecommitdiffstats
path: root/community/retro-gtk/APKBUILD
blob: 83bef078e276790547da5bc12002d46f0553fa38 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=retro-gtk
pkgver=0.18.0
pkgrel=0
pkgdesc="The GTK+ Libretro frontend framework"
url="https://gitlab.gnome.org/GNOME/retro-gtk"
arch="all"
license="GPL-3.0-or-later"
makedepends="meson libepoxy-dev glib-dev gtk+3.0-dev pulseaudio-dev
	gobject-introspection-dev vala"
checkdepends="xvfb-run"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/retro-gtk/${pkgver%.*}/retro-gtk-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		. output
	ninja -C output
}

check() {
	xvfb-run ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="bfb33b3c61eeb40a875f8e2024e23960719a759471b5b09b1e54f65938e2b324b87b8925fbea7086c2d13afb41b476c610905203e9f42a05bb1a68c2f9beb20f  retro-gtk-0.18.0.tar.xz"