summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84ad02376e88a6c3b4d150d5efd54ea311da00d0 (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
# Maintainer: k8ie <k8ie@firemail.cc>
pkgbase=flamenco
pkgname=('flamenco-manager' 'flamenco-worker')
pkgver=3.5
pkgrel=1
pkgdesc="Flamenco render farm manager"
arch=('x86_64' 'aarch64')
url="https://projects.blender.org/studio/flamenco"
options=(!lto)
license=('GPL3')
depends=(
  'ffmpeg'
)
makedepends=(
  'npm'
  'go'
  'yarn'
)
source=(
  "${pkgbase}::git+https://projects.blender.org/studio/flamenco.git#tag=v${pkgver}"
)
sha256sums=('87b2ef8c51c66a4ab9d7238e74434aa8c982b07a8811a27c7d244178a4cbf0ce')

build () {
  export GOPATH="$srcdir"/gopath
  export LDFLAGS=""
  build_flamenco-manager
  build_flamenco-worker
}

build_flamenco-manager() {
  cd "$srcdir/$pkgbase/web/app"
  npm install

  cd "$srcdir/$pkgbase"
  make flamenco-manager
}

build_flamenco-worker() {
  cd "$srcdir/$pkgbase"
  make flamenco-worker
}

package_flamenco-manager() {
optdepends=(
  'blender: for the initial setup'
)
  install "$srcdir/$pkgbase/flamenco-manager" -Dt "$pkgdir/usr/bin"
}

package_flamenco-worker() {
pkgdesc="Worker for the Flamenco render farm system"
optdepends=(
  'blender: for rendering projects'
)
  install "$srcdir/$pkgbase/flamenco-worker" -Dt "$pkgdir/usr/bin"
}