new bblfs: media-sound/playerctl-2.4.1
This commit is contained in:
41
media-sound/playerctl-2.4.1.PKGBUILD
Normal file
41
media-sound/playerctl-2.4.1.PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
pkgname=playerctl
|
||||||
|
pkgver=2.4.1
|
||||||
|
pkgdesc="A CLI utility to control media players over MPRIS"
|
||||||
|
homepage="https://github.com/acrisci/playerctl"
|
||||||
|
license=("LGPL-3+")
|
||||||
|
depends=(
|
||||||
|
glib
|
||||||
|
gobject-introspection
|
||||||
|
)
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||||
|
urls=("https://github.com/acrisci/playerctl/archive/v${pkgver}.tar.gz")
|
||||||
|
sha512sums=("2d84f657b07c948cd6990d9e79c4eb6e83f97c387ac53c2322fc0adbeb853950fa935332233329e7555db7d157f3ced6498cc102edaffd78849ca1f7d4c49bdc")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
local meson_args=(
|
||||||
|
--prefix=/usr
|
||||||
|
--buildtype=release
|
||||||
|
--wrap-mode=nodownload
|
||||||
|
-D python.bytecompile=1
|
||||||
|
-D datadir=share
|
||||||
|
-D bindir=bin
|
||||||
|
-D bash-completions=false
|
||||||
|
-D zsh-completions=false
|
||||||
|
-D gtk-doc=false
|
||||||
|
-D introspection=false
|
||||||
|
)
|
||||||
|
meson setup build "${meson_args[@]}"
|
||||||
|
meson compile -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson install -C build --destdir "$pkgdir"
|
||||||
|
install -vDm644 data/playerctl.bash "${pkgdir}"/usr/share/bash-completion/completions/playerctl
|
||||||
|
install -vDm644 data/playerctl.zsh "${pkgdir}"/usr/share/zsh/site-functions/_playerctl
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:ft=sh syn=sh et sw=2:
|
||||||
Reference in New Issue
Block a user