aboutsummaryrefslogtreecommitdiffstats
path: root/testing/playerctl/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/playerctl/APKBUILD')
-rw-r--r--testing/playerctl/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/playerctl/APKBUILD b/testing/playerctl/APKBUILD
new file mode 100644
index 0000000000..99a3adc5a2
--- /dev/null
+++ b/testing/playerctl/APKBUILD
@@ -0,0 +1,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"