# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=gnome-shortwave pkgver=0_git20200216 _sha=f7e766fa413e532bc211bbcf2cc4c9528991ad62 pkgrel=1 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=plain \ -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"