summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2514b06394553b8b4d6066b55d5b7f725188bed7 (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
# Maintainer: Apoorv <apoorvs569@gmail.com>

_pkgname=vitOTT
pkgname=vitott-git
pkgver=r50.fa5f455
pkgrel=1
pkgdesc="Multiband compressor from famous spectral warping synthesizer"
arch=('x86_64')
url="https://github.com/edgjj/vitOTT"
license=('GPL3')
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${_pkgname%}"

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

prepare() {
  cd "$srcdir/${_pkgname%}"

  git switch dev
  git submodule update --init --recursive
}

build() {
  cd "$srcdir/${_pkgname%}"

  cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
  make -C build
}

package() {
  cd "$srcdir/${_pkgname%}"

  mkdir -p "${pkgdir}/usr/lib/lv2"
  mkdir -p "${pkgdir}/usr/lib/vst3/"

  cp -r build/vitOTT_artefacts/Release/LV2/vitOTT.lv2/ "${pkgdir}/usr/lib/lv2"
  cp -r build/vitOTT_artefacts/Release/VST3/vitOTT.vst3/ "${pkgdir}/usr/lib/vst3/"
}