summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71d84fc59ebe839a9ed125db9eccb1d4b2f39357 (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
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgbase=avisynthplus-git
pkgname=(
  'avisynthplus-git'
  'avisynthplus-docs-git'
)
pkgver=3.7.3.8.geba18dca
pkgrel=1
pkgdesc='Avisynth+. (GIT Version)'
arch=('x86_64')
url='http://avs-plus.net'
license=('GPL')
makedepends=(
  'git'
  'cmake'
  'python-sphinx'
  'devil'
)
source=('git+https://github.com/AviSynth/AviSynthPlus.git')
sha256sums=('SKIP')
options=('debug')

pkgver() {
  cd AviSynthPlus
  echo $(git describe --long --tags | tr - . | tr -d v)
}

prepare() {
  mkdir -p AviSynthPlus/distrib/docs/english/source/_static
}

build() {
  cmake -S AviSynthPlus -B build \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DENABLE_CUDA=OFF

  cmake --build build

  make -C "${srcdir}/AviSynthPlus/distrib/docs/english" html # man
}

package_avisynthplus-git() {
  depends=(
    'gcc-libs' # libgcc_s.so libstdc++.so
    'glibc' # ld-linux-x86-64.so libc.so libm.so
    'devil' # libIL.so
  )
  provides=(
    'avisynthplus'
    'libavisynth.so'
  )
  conflicts=('avisynthplus')

  DESTDIR="${pkgdir}" cmake --build build --target install

  #install -Dm644 AviSynthPlus/distrib/docs/english/build/man/avisynth.1 "${pkgdir}/usr/share/man/man1/avisynth.1"

  (cd AviSynthPlus/distrib/Examples; find . -type f -exec install -Dm644 "{}" "${pkgdir}/usr/share/avisynth/Examples/{}" \;)
}

package_avisynthplus-docs-git() {
  pkgdesc='AviSynth+ Documentation. (GIT Version)'
  arch=('any')

  (cd AviSynthPlus/distrib/docs/english/build/html; for i in $(find . -type f); do install -Dm644 "${i}" "${pkgdir}/usr/share/doc/avisynth/${i}"; done)
}