summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0608d1225202a77302cbd0590a33aa45ec4d8afa (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=r103.cc02ed9
pkgrel=1
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
}