summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a11540f0ad72c53571ba85e43899de6597d6c832 (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
# Maintainer: Mads Kjeldgaard<mail@madskjeldgaard.dk>
pkgname=supercollider-vstplugin-git
pkgver=r1807.955a705
pkgrel=2
pkgdesc='The IEM vstplugin plugin for SuperCollider'
arch=('x86_64')
url='https://git.iem.at/pd/vstplugin'
license=('custom: Other')
groups=('pro-audio' 'supercollider-plugins')
depends=('supercollider' 'lib32-libx11')
makedepends=('git' 'cmake' 'supercollider-headers-git')
optdepends=()
conflicts=("supercollider-vstplugin")
source=("$pkgname"::git+$url.git)
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {

		SC_SRC="/usr/share/supercollider-headers"
		DEST="$pkgdir/usr/share/SuperCollider/Extensions"

		cd "$srcdir/$pkgname"
		git submodule update --init --recursive

		# Get VST2
		.git-ci/get_vst2.sh

		# Get VST3
		.git-ci/get_vst3.sh

		cd "$srcdir/$pkgname"
		mkdir -p build 
		cd build

		cmake -DSC=ON -DPD=OFF -DVST2=ON -DVST3=ON -DBUILD_HOST=ON -DBUILD_HOST32=ON -DBUILD_WINE=OFF -DWINE=OFF -DBRIDGE=ON -DSUPERNOVA=ON -DSC_INCLUDEDIR="$SC_SRC" -DCMAKE_BUILD_TYPE=RELEASE -DSC_INSTALLDIR="$DEST" ..

		cmake --build . -j -v
		# make
}


package() {
	cd "$srcdir/$pkgname/build"
	cmake --build . -v -t install

	install -Dm644 "$srcdir/$pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/supercollider-vstplugin-git/LICENSE.txt"

	echo -E "
-------------------
VSTPlugin installed for SuperCollider:

Please run VSTPlugin.clear and VSTPlugin.search() when starting SuperCollider.

-------------------
	"
	# cmake --build . --config Release --target install
}