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

_pkgname=tunefish4
pkgname="${_pkgname}-git"
pkgver=4.2.0.r90.a199cb0
pkgrel=1
pkgdesc="An additive wavetable-based synthesizer VST plugin (git version)"
arch=('x86_64')
url="http://www.tunefish-synth.com/"
# See https://github.com/paynebc/tunefish/blob/master/COPYING
license=("GPL3")
groups=('vst-plugins')
depends=('webkit2gtk')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}" "${_pkgname}-vst-bin")
source=("${_pkgname}::git://github.com/paynebc/tunefish.git"
        "juce-pixel.patch")
sha256sums=('SKIP'
            'c0b274515dadd14b530c35517d6fb3749b861344cec90c12eef965c9bca3e479')


pkgver() {
  cd "${srcdir}/${_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
}

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

  msg2 "Patching JUCE graphics..."
  patch -p1 -N -i "${srcdir}/juce-pixel.patch"
}

build() {
  cd "${srcdir}/${_pkgname}/src/tunefish4/Builds/LinuxMakefile/"

  make
}

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

  install -dm755 "${pkgdir}/usr/lib/vst/tf4programs"
  install -m755 src/tunefish4/Builds/LinuxMakefile/build/Tunefish4.so \
    "${pkgdir}/usr/lib/vst"
  install -m644 patches/tf4programs/* "${pkgdir}/usr/lib/vst/tf4programs"
}

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