aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gnome-shortwave/APKBUILD
blob: fe96048323d8db41c375dded9ec60b8a8987136b (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-shortwave
pkgver=0_git20200216
_sha=f7e766fa413e532bc211bbcf2cc4c9528991ad62
pkgrel=0
pkgdesc="Listen to internet radio"
url="https://gitlab.gnome.org/World/Shortwave"
arch="all !s390x" # Rust
license="GPL-3.0-only"
depends="gst-libav gst-plugins-base gst-plugins-bad gstreamer"
makedepends="meson gettext cargo glib-dev gtk+3.0-dev libhandy-dev gstreamer-dev
	openssl-dev sqlite-dev gst-plugins-base-dev gst-plugins-bad-dev"
checkdepends="appstream-glib desktop-file-utils"
source="$pkgname-$pkgver.tar.gz::https://gitlab.gnome.org/World/Shortwave/-/archive/$_sha.tar.gz"
builddir="$srcdir/Shortwave-$_sha"

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

check() {
	ninja -C output test
}

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

sha512sums="43dafcef9517e97037a8bc7fc735a8336aed71f1415f4faa4cff014dd7d1d5f1fdba1dc2a2bf368c0c7474ce10d6da0ebf82ca98292e99c0fed8518f5ccb984a  gnome-shortwave-0_git20200216.tar.gz"