summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d880ba354250c7da0d00cbef632b83093d3150ad (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
# Maintainer: timescam <rex.ky.ng at gmail dot com>

pkgname=playerctl-git
_pkgname=playerctl
pkgver=2.3.1.r25.g7cad212
pkgrel=1
pkgdesc="mpris media player controller and lib for spotify, vlc, audacious, bmp, xmms2, and others."
arch=('i686' 'x86_64')
url="https://github.com/acrisci/playerctl"
license=('LGPL3')
depends=('glib2')
optdepends=('python-gobject: python bindings')
makedepends=('git' 'gtk-doc' 'meson' 'ninja' 'gobject-introspection')
provides=('playerctl')
conflicts=('playerctl')
source=("$_pkgname::git+https://github.com/acrisci/playerctl.git")
sha256sums=("SKIP")

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

build() {
    	cd "$srcdir/$_pkgname"
    	arch-meson build -D bash-completions=true -D zsh-completions=true
	ninja -C build
}

package() {
    	cd "$srcdir/$_pkgname"
	DESTDIR="${pkgdir}" ninja -C build install
}