summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17f669f622656eaa939f8f788c3acd56ff7d6cd7 (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
# Maintainer: intothegnu <intothegnu@protonmail.com>

pkgname="mpv-gallery-view-git"
pkgver=0.0.0.r188
pkgrel=2
install="mpv-gallery-view.install"
pkgdesc="MPV gallery view for chapters and playlists."
arch=('any')
depends=('mpv')
license=('custom:Unlicense')
provides=('mpv-gallery-view')
conflicts=('mpv-gallery-view')
url="https://github.com/occivink/mpv-gallery-view"
source=("git+https://github.com/occivink/mpv-gallery-view")
md5sums=('SKIP')

pkgver(){
	cd "mpv-gallery-view"
	pkgver=$(echo ${pkgver} | sed 's/\.r[0-9]*$//')
	echo "${pkgver}.r$(git rev-list --count HEAD)"
}

package(){
	mkdir -p $pkgdir/usr/lib/mpv/mpv-gallery-view/scripts
	mkdir -p $pkgdir/usr/lib/mpv/mpv-gallery-view/script-modules
	install -m 644 $srcdir/mpv-gallery-view/scripts/* $pkgdir/usr/lib/mpv/mpv-gallery-view/scripts
	install -m 644 $srcdir/mpv-gallery-view/script-modules/* $pkgdir/usr/lib/mpv/mpv-gallery-view/script-modules
}