summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1615a41ffc2aa279f8f4b7b7326c5f701b463063 (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
30
31
32
# Maintainer: AudioLinux  <audiolinux AT fastmail DOT fm>

pkgname=mpv-prescalers-git
pkgver=r77.46b8193
pkgrel=2
pkgdesc="User shaders for prescaling in mpv"
arch=('any')
url="https://github.com/bjin/mpv-prescalers/tree/master"
license=('LGPL3')
depends=('mpv')
makedepends=('git')
source=("git+https://github.com/bjin/mpv-prescalers.git")
sha256sums=('SKIP')

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

#prepare() {
# bash $srcdir/mpv-prescalers/gen.sh
#}

package() {
  install -Dm644 $srcdir/mpv-prescalers/LICENSE $pkgdir/usr/share/licenses/mpv-prescalers/LICENSE
  install -Dm644 $srcdir/mpv-prescalers/README.md $pkgdir/usr/share/doc/mpv-prescalers/README.md
  install -d $pkgdir/usr/share/mpv-prescalers
  cp -r $srcdir/mpv-prescalers/* $pkgdir/usr/share/mpv-prescalers/
  rm $pkgdir/usr/share/mpv-prescalers/LICENSE
  rm $pkgdir/usr/share/mpv-prescalers/README.md
}