aboutsummaryrefslogtreecommitdiffstats
path: root/community/carla/APKBUILD
blob: 71f8d265ac84551222048fcdd668974fbb66c0ee (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
# Contributor: Magnus Sandin <magnus.sandin@gmail.com>
# Maintainer: Magnus Sandin <magnus.sandin@gmail.com>
pkgname=carla
pkgver=2.5.8
pkgrel=0
pkgdesc="Fully-featured audio plugin host"
url="https://github.com/falkTX/Carla"
options="!check" # No tests available
arch="armv7 aarch64 riscv64 x86 x86_64"
license="GPL-2.0-or-later"
depends="
	python3
	py3-pyliblo
	py3-qt5
	py3-rdflib
	qt5-qtsvg
	$pkgname-plugins-lv2
	$pkgname-plugins-vst2
	"
depends_dev="$pkgname"
makedepends="
	alsa-lib-dev
	file-dev
	fluidsynth-dev
	liblo-dev
	libsndfile-dev
	libx11-dev
	linux-headers
	musl-fts-dev
	pulseaudio-dev
	qt5-qtbase-dev
	qt5-qtsvg-dev
	"
subpackages="$pkgname-dev $pkgname-plugins-vst2 $pkgname-plugins-lv2"
source="$pkgname-$pkgver.tar.gz::https://github.com/falkTX/Carla/archive/refs/tags/v$pkgver.tar.gz
	stats64_2_stats.patch"
builddir="$srcdir/Carla-$pkgver"

build() {
	export CFLAGS="$CFLAGS -O3 -flto=auto"
	export CXXFLAGS="$CXXFLAGS -O3 -flto=auto"
	export LDFLAGS="$LDFLAGS -lfts"

	make features
	make
}

package() {
	make install PREFIX=/usr DESTDIR="$pkgdir"
}

lv2() {
	depends=""
	pkgdesc="$pkgdesc (LV2 plugins)"

	mkdir -p "$subpkgdir/usr/lib/lv2/carla.lv2"
	find "$pkgdir/usr/lib/lv2/carla.lv2" -maxdepth 1 -type f -exec mv {} "$subpkgdir/usr/lib/lv2/carla.lv2" \;
}

vst2() {
	depends=""
	pkgdesc="$pkgdesc (VST2 plugins)"

	mkdir -p "$subpkgdir/usr/lib/vst/carla.vst"
	find "$pkgdir/usr/lib/vst/carla.vst" -maxdepth 1 -type f -exec mv {} "$subpkgdir/usr/lib/vst/carla.vst" \;
}

sha512sums="
0f87ebe053d29a4a455532cc90e66ca7978f0f3678d0814bd5fb3343e852e2a28d0f5e170e67a71bf64fec1c9bd696dd7aa01627b02edd23cfe4994dc357b857  carla-2.5.8.tar.gz
e673f24e79af9869fe4dbddaf4cd503acc31c56022121accddfe59a691db977d1beca46ed090df11d8cca2f021517aaa19e8b2f3901192019dfbc83162bdd793  stats64_2_stats.patch
"