summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09b08ab910148a8838fc7c3fca64d7e0334e8f04 (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
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_pkgname=tunefish4
pkgname=$_pkgname-git
pkgver=4.3.0.r107.7e48ce8
pkgrel=3
pkgdesc='An additive wavetable-based synthesizer VST plugin (git version)'
arch=(x86_64)
url="https://www.tunefish-synth.com/"
# See https://github.com/paynebc/tunefish/blob/master/COPYING
license=(GPL-3.0-or-later)
groups=(vst-plugins)
depends=(glibc gcc-libs)
makedepends=(alsa-lib curl freetype2 git vst2sdk)
provides=($_pkgname)
conflicts=($_pkgname "${_pkgname}-vst-bin")
source=("$_pkgname::git+https://github.com/paynebc/tunefish.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  #local version="$(git describe --tags | sed -e 's/RELEASE_\([^-]*\).*/\1/;s/_/./g')"
  local version="$(cat VERSION_TF4)"
  local revision=$(git rev-list --count HEAD)
  local hash=$(git rev-parse --short HEAD)
  echo $version.r$revision.$hash
}

build() {
  cd $_pkgname/src/tunefish4/Builds/LinuxMakefile
  export CPPFLAGS="$CPPFLAGS -I/usr/src/vst2sdk"
  make
}

package() {
  depends+=(libasound.so libcurl.so libfreetype.so)
  cd $_pkgname
  install -Dm755 src/tunefish4/Builds/LinuxMakefile/build/Tunefish4.so \
    -t "$pkgdir"/usr/lib/vst
  install -Dm644 patches/tf4programs/* \
    -t "$pkgdir"/usr/lib/vst/tf4programs
}

# vim:set ts=2 sw=2 et: