blob: 03d2c3673d951878d23809fd2435c6966c2aa065 (
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
|
# Maintainer: Mads Kjeldgaard<mail@madskjeldgaard.dk>
pkgname=supercollider-maths-git
pkgver=r19.639b619
pkgrel=1
pkgdesc='SuperCollider emulation of the Maths eurorack module'
arch=('any')
url='https://github.com/spluta/Maths'
license=('GPL')
groups=('pro-audio' 'supercollider-plugins')
depends=('supercollider')
makedepends=('git' 'cmake' 'faust' 'ruby-rexml')
optdepends=()
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() {
cd "$srcdir/$pkgname"
faust2supercollider -noprefix -d FaustSource/*.dsp
}
package() {
cd "$srcdir/$pkgname"
DEST="$pkgdir/usr/share/SuperCollider/Extensions/$pkgname"
# Prepare install directories
mkdir -p $DEST/Classes
mkdir -p $DEST/HelpSource/Classes
PLUGIN_FOLDER=FaustSource
# Shared objects
for FILE in *.so; do install -Dm755 $PLUGIN_FOLDER/*.so "$DEST"; done
# Classes
for FILE in "Classes/*.sc"; do install -Dm755 ./$FILE "$DEST/Classes"; done
# Help Files
for FILE in "HelpSource/*.schelp"; do install -Dm755 ./$FILE "$DEST/HelpSource/Classes"; done
}
|