aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-podcasts/APKBUILD
blob: 67b3df5a7f300a85c08c2a4c64c43f4b47e8df51 (plain) (blame)
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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-podcasts
pkgver=0.4.7
pkgrel=2
pkgdesc="Podcast app for GNOME"
url="https://wiki.gnome.org/Apps/Podcasts"
arch="all !s390x !x86 !mips !mips64" # rust crashing on x86, missing deps on s390x and mips
license="GPL-3.0-or-later"
makedepends="meson gtk+3.0-dev gstreamer-dev libhandy-dev sqlite-dev openssl-dev
	dbus-dev gst-plugins-base-dev gst-plugins-bad-dev cargo bash"
checkdepends="desktop-file-utils appstream-glib xvfb-run"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/podcasts/uploads/90c4f40f529ff91dabac5d7cbbc0f5ed/gnome-podcasts-$pkgver.tar.xz"

prepare() {
	default_prepare

	sed 's| /usr/bin/sh|/bin/sh|' -i scripts/test.sh
}

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

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

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

sha512sums="050eaf96a7d36fa97d4e593d4741cbeb6413b7a7346a31831cf2baeaebaff25959cefbd4bb3f656601a61802a25ddf7c1f5eac2a814fb29b464552861716387e  gnome-podcasts-0.4.7.tar.xz"