summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1d2a3cbab36b94c6859ebe238c6bac72267f709 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

_plug=dgdecodenv
pkgbase=dgnvindex-bin
pkgname=(
  'dgindexnv-bin'
  "vapoursynth-plugin-${_plug}-bin"
#  "avisynth-plugin-${_plug}-bin"
)
pkgver=2053.0.0.502
pkgrel=1
pkgdesc="AVC/HEVC/MPG/VC1 Decoder and Frame Server"
arch=('x86_64')
url='https://www.rationalqm.us/dgdecnv/dgdecnv.html'
license=('custom:Donald A. Graft')
source=("https://www.rationalqm.us/dgdecnv/binaries/dgdecnv_linux_${pkgver##*.}.zip")
sha256sums=('5dc88715bdde1dda21540e317f8ffc28a837b05d7bd14595f08e944384f19f99')
DLAGENTS=('https::/usr/bin/curl -A "Chrome/88.0.4324.182" -o %o %u')

package_dgindexnv-bin() {
  pkgdesc="AVC/HEVC/MPG/VC1 Decoder and Frame Server"
  depends=(
    'glibc'
    'zlib' 'libz.so'
  )
  conflicts=(
    'dgindexnv'
    'dgnvindex-bin'
  )
  provides=('dgindexnv')
  replaces=('dgnvindex-bin')

  install -Dm755 dgindexnv "${pkgdir}/usr/bin/dgindexnv"

  install -Dm644 LinuxUserManual.txt "${pkgdir}/usr/share/doc/${pkgname}/LinuxUserManual.txt"
  install -Dm644 LinuxLimitations.txt "${pkgdir}/usr/share/doc/${pkgname}/LinuxLimitations.txt"
}

package_vapoursynth-plugin-dgdecodenv-bin() {
  pkgdesc="Plugin for Vapoursynth: ${_plug}"
  depends=(
    'vapoursynth'
    'gcc-libs'
    'glibc'
    'zlib' 'libz.so'
    'nvidia-utils'
  )
  provides=("vapoursynth-plugin-${_plug}")
  conflicts=("vapoursynth-plugin-${_plug}")

  install -Dm755 libdgdecodenv.so "${pkgdir}/usr/lib/vapoursynth/libdgdecodenv.so"
  install -Dm644 LinuxUserManual.txt "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/LinuxUserManual.txt"
}

package_avisynth-plugin-dgdecodenv-bin() {
  pkgdesc="Plugin for Avisynth: ${_plug}"
  depends=(
    'avisynthplus'
    'gcc-libs'
    'glibc'
    'zlib' 'libz.so'
    'nvidia-utils'
  )
  provides=("avisynth-plugin-${_plug}")
  conflicts=("avisynth-plugin-${_plug}")

  install -Dm755 libdgdecodenv.so "${pkgdir}/usr/lib/avisynth/libdgdecodenv.so"
  install -Dm644 LinuxUserManual.txt "${pkgdir}/usr/share/doc/avisynth/plugins/${_plug}/LinuxUserManual.txt"
}