summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d165b4a02f0d1a0e3f10d40af6ca39abd352e8fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: VlaDexa (Vladislav Grechannik) <vgrechannik@gmail.com>
_pkgname='thumbfast'
pkgname="mpv-${_pkgname}-osc-git"
pkgdesc="${_pkgname}s fork of the default osc for MPV"
pkgver=r226.5fefc9b
pkgrel=1
arch=('any')
url='https://github.com/po5/thumbfast'
makedepends=('mpv' 'git')
source=("git+${url}.git#branch=vanilla-osc")
b2sums=('SKIP')

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

package() {
  cd "$srcdir/$_pkgname"
  install -Dm644 "player/lua/osc.lua" -t "${pkgdir}/etc/mpv/scripts/"
}