summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd25f97136ae1bb7ca7cb18d6b95459b3cad3d68 (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
pkgname=mpv-playlistmanager-git
_pkgname=${pkgname%-git}
pkgver=r224.1c2c880
pkgrel=2
pkgdesc="Mpv lua script to create and manage playlists."
arch=('any')
url="https://github.com/jonniek/mpv-playlistmanager"
license=('Unlicense')
depends=('mpv')
makedepends=('git')
provides=('mpv-playlistmanager')
source=("$_pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$_pkgname"
  install -Dm644 playlistmanager.lua -t "$pkgdir"/usr/share/mpv/scripts
  install -Dm644 playlistmanager.conf -t "$pkgdir"/usr/share/doc/mpv/script-opts
}