summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f2c1563cc25db2a1a6e5e66337b3a240c345e20 (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
36
# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com>

pkgname=shortwave
pkgver=3.2.0
pkgrel=1
epoch=1
pkgdesc="Find and listen to internet radio stations"
arch=('x86_64' 'aarch64')
url="https://gitlab.gnome.org/World/Shortwave"
license=('GPL3')
depends=('libadwaita' 'libshumate' 'gstreamer' 'gst-plugins-base' 'gst-plugins-bad' 'gst-plugins-good' 'gst-libav')
makedepends=('git' 'meson' 'cargo' 'wayland-protocols')
checkdepends=('appstream-glib')
_commit=6fb4acd47a4eae422270f9543bce2d5f0037504c # tags/3.2.0^0
source=("$pkgname::git+$url.git#commit=$_commit")
options=('!lto')
b2sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

build() {
  export RUSTUP_TOOLCHAIN=stable
  arch-meson $pkgname build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs || :
}

package() {
  meson install -C build --destdir "$pkgdir"
}