summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 930e51895d9cced17e725d0d420c40ce833a8a2a (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
# Maintainer: esrh : email at esrh at netc dot eu
pkgname=mpv-mpvacious
pkgver=0.13.r21.ga9cb73d
pkgrel=1
pkgdesc="Adds mpv keybindings to create Anki cards from movies and TV shows."
arch=('any')
url="https://github.com/Ajatt-Tools/mpvacious"
license=('GPL3')
depends=('mpv')
optdepends=('xclip: clipboard autocopy')
source=("mpv-mpvacious::git+https://github.com/Ajatt-Tools/mpvacious")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git describe --long --tags | sed "s/-/.r/;s/-/./" | cut -c2-
}

package() {
	cd "$srcdir/$pkgname"
	install -Dm644 subs2srs.lua "${pkgdir}/etc/mpv/scripts/mpvacious/subs2srs.lua" 
	install -Dm644 osd_styler.lua "${pkgdir}/etc/mpv/scripts/mpvacious/osd_styler.lua" 
	install -Dm644 main.lua "${pkgdir}/etc/mpv/scripts/mpvacious/main.lua" 
}