summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e02fdc3c21f2b91cc033e3e1b4badf2f8267ec61 (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
37
38
39
40
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=audio-sharing-git
pkgver=0.1.2.r8.gd470e61
pkgrel=1
pkgdesc='Share your computer audio'
url='https://gitlab.gnome.org/World/AudioSharing'
license=(GPL3)
arch=(x86_64 aarch64)
provides=(audio-sharing)
conflicts=(audio-sharing)
depends=(
	gst-rtsp-server
	libadwaita
)
makedepends=(
	cargo
	git
	meson
)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	cd AudioSharing
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	arch-meson AudioSharing build
	meson compile -C build
}

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

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