summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a9825f93e91544954dc73cfe6ea899393ad1334 (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
# Maintainer: Mads Kjeldgaard<mail@madskjeldgaard.dk>
pkgname=supercollider-graphloopgrain-git
pkgver=r3.db9bbc6
pkgrel=2
pkgdesc='Graph-based audio looping and granulation in Flucoma'
arch=('any')
url='https://github.com/flucoma/graph_loop_grain'
license=('GPL')
groups=('pro-audio' 'supercollider-plugins')
depends=('supercollider')
makedepends=('git' 'cmake' 'supercollider-headers-git')
optdepends=('supercollider-flucoma' 'supercollider-flucoma-git')
source=("$pkgname"::git+$url.git)
md5sums=('SKIP')

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

build() {
		SC_SRC="/usr/share/supercollider-headers"

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

		mkdir build; cd build
		cmake -DSC_PATH=$SC_SRC ..
		make
}


package() {
	DEST="$pkgdir/usr/share/SuperCollider/Extensions/$pkgname"
	cd "$srcdir/$pkgname/supercollider/build"


	cmake --build . --target install

	# install -Dm755 dist $DEST
	mkdir -p $DEST
	cp -av dist/plugins $DEST/
	cp -av dist/Classes $DEST/
	cp -av dist/HelpSource $DEST/



}