summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a976dfc5a80b1b0f40c5a7ae9eee995b3ea37e72 (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
# Maintainer: Alec Mev <alec@mev.earth>

pkgname=mpv-plugin-excerpt-git
pkgver=r16.09c8a7a
pkgrel=1
pkgdesc='Excerpt creation from within mpv'
arch=('any')
url=https://gitlab.com/lvml/mpv-plugin-excerpt
license=('GPL2')
depends=(
  'ffmpeg'
  'mpv'
)
makedepends=('git')
source=("${pkgname}::git+https://gitlab.com/lvml/mpv-plugin-excerpt.git")
sha256sums=('SKIP')

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

package() {
  cd "${pkgname}"
  install -Dm755 -t "${pkgdir}/usr/bin/" excerpt_copy
  install -Dm644 -t "${pkgdir}/usr/lib/mpv/" excerpt.lua
  install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/" README.md
}