aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-shortwave/APKBUILD
blob: ebc98292560f23c63e33d5d306463ead65fbbc77 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-shortwave
pkgver=1.0.1
pkgrel=0
pkgdesc="Listen to internet radio"
url="https://gitlab.gnome.org/World/Shortwave"
arch="all !s390x !mips !mips64" # 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="https://gitlab.gnome.org/World/Shortwave/uploads/c2d6a38025e1bf255bbb5fed58b0ffbc/shortwave-$pkgver.tar.xz"
builddir="$srcdir/shortwave-$pkgver"

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="5e14ea13aafece690b47a21cfd9ada37ca10592fc59bc946b9b7bf8248dfa3ea664964549b59504ec0de56533845421209a186b0d42e001930a550544643e5b4  shortwave-1.0.1.tar.xz"