summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f1bf6b608ccdaebe497a8109bb43052115e42be (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
69
70
71
72
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: cocreature <moritz.kiefer<at>purelyfunctional<dot>org>

_name=Carla
_pkgname="${_name,,}"
pkgname="$_pkgname-git"
pkgver=2.5.0.r1.ge3b25116d
pkgrel=1
epoch=1
pkgdesc="Audio Plugin Host"
arch=(i686 x86_64)
url='https://kx.studio/Applications:Carla'
license=(GPL2)
conflicts=("$_pkgname")
provides=("$_pkgname" dssi-host ladspa-host lv2-host vst-host vst3-host)
depends=(
    alsa-lib
    gcc-libs
    glibc
    hicolor-icon-theme
    libglvnd
    libx11
    python-pyqt5
    qt5-base
    qt5-svg
)
makedepends=(
    file
    fluidsynth
    freetype2
    git
    liblo
    libpulse
    libsndfile
    qt5-tools
)
optdepends=(
    'jack: for using carla with JACK'
    'lv2-host: for the LV2 plugin'
    'vst-host: for the VST plugin'
    'python-pyliblo: OSC control support'
    'python-rdflib: LADSPA-RDF support'
)
source=("$_pkgname::git+https://github.com/falkTX/$_name.git")
md5sums=('SKIP')
changelog='changelog.txt'


pkgver() {
  cd $_pkgname
  git describe --long --tags | sed "s/\([^-]*-g\)/r\1/;s/-/./g;s/^v//"
}

build() {
  cd $_pkgname
  make features
  make \
    DEFAULT_QT=5 \
    HAVE_QT4=false
}

package() {
  depends+=(libasound.so libfluidsynth.so libfreetype.so liblo.so libmagic.so
            libpulse.so libsndfile.so)
  cd $_pkgname
  make \
    DEFAULT_QT=5 \
    HAVE_QT4=false \
    DESTDIR="$pkgdir" \
    PREFIX=/usr \
    install
}