summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dcacf506fcbdafa4854621a83cfeddebb3e366ba (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
33
34
# Maintainer: Adler Neves <adlerosn@gmail.com>

provides=('anime4k')
conflicts=('anime4k')
pkgver=r349.dad28f9
pkgname=anime4k-git
pkgrel=1
pkgdesc="A High-Quality Real Time Upscaler for Anime Video"
arch=('any')
depends=()
makedepends=('go-md2man')
url="https://github.com/bloc97/Anime4K#anime4k"
options=()
license=('MIT')
source=('anime4k::git+https://github.com/bloc97/Anime4K')
sha512sums=('SKIP')

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

build() {
  cd "${srcdir}"
  go-md2man -in anime4k/GLSL_Instructions.md -out glsl.man
}

package() {
  cd "${pkgdir}"
  install -d "${pkgdir}"/usr/share/anime4k
  install -d "${pkgdir}"/usr/share/man/man1
  install "${srcdir}"/glsl.man -m 644 "${pkgdir}"/usr/share/man/man1/anime4k.1
  cp -rf "${srcdir}"/anime4k/glsl/. "${pkgdir}"/usr/share/anime4k/.
}