aboutsummaryrefslogtreecommitdiffstats
path: root/testing/playerctl/APKBUILD
blob: 99a3adc5a2b7c156d79568b768e03354cbc9288c (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: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=playerctl
pkgver=2.0.2
pkgrel=0
pkgdesc="MPRIS command-line controller for music players"
options="!check" # Requires unpackaged pytest-asyncio
url="https://github.com/altdesktop/playerctl"
arch="all"
license="LGPL-3.0-or-later"
makedepends="meson glib-dev gobject-introspection-dev"
checkdepends="py3-pytest py3-pytest-timeout"
subpackages="
	$pkgname-dev
	$pkgname-doc
	"
source="https://github.com/altdesktop/playerctl/releases/download/v$pkgver/playerctl-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dgtk-doc=false \
		-Dintrospection=true \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="3aae0cbef636a36e5e0e4daa980782e0718765032b06c3c4e83b9eb1ade9ebb555eaae2e881bef125db6a67f9803ebc45cff37c95bf044b3e3c5fa6c517e03c4  playerctl-2.0.2.tar.xz"