summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acae2ac800ca82b46355aba3d65f32ab73ffe5a7 (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
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=mpv-mpris-git
pkgver=0.2.4.ga9fe25c
pkgrel=1
pkgdesc="MPRIS plugin for mpv. (GIT version)"
arch=('x86_64')
depends=('mpv'
         'glib2'
         )
license=('MIT')
url='https://github.com/hoyon/mpv-mpris'
makedepends=('git')
provides=('mpv-mpris')
conflicts=('mpv-mpris')
source=('git+https://github.com/hoyon/mpv-mpris.git')
sha256sums=('SKIP')
install=mpv-mpris-git.install

pkgver() {
  cd mpv-mpris
  echo "$(git describe --long --tags | tr - .)"
}

build() {
  cd mpv-mpris
  make
}

package() {
  cd mpv-mpris
  install -Dm755 mpris.so "${pkgdir}/usr/share/mpv/scripts/mpris.so"

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}