summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de0669280953c74e5913c485e9a175a755bfde80 (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
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: ptrv <mail@petervasil.net>

_name=sc3-plugins
pkgname=sc3-plugins-git
pkgver=3.11.0.r2.g03b233b
pkgrel=1
pkgdesc="Extension plugins for the SuperCollider3 audio synthesis server."
arch=('i686' 'x86_64')
url="https://github.com/supercollider/sc3-plugins"
license=('GPL2')
depends=('gcc-libs' 'glibc' 'supercollider')
makedepends=('cmake' 'fftw' 'git' 'stk')
conflicts=('sc3-plugins')
provides=('sc3-plugins')
source=("${_name}::git+https://github.com/supercollider/sc3-plugins"
        "git+https://github.com/timblechmann/nova-simd.git"
        "git+https://github.com/thestk/stk.git")
sha512sums=('SKIP'
            'SKIP'
            'SKIP')

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

prepare() {
  cd "$_name"
  git submodule init
  git config submodule.external_libraries/nova-simd.url "${srcdir}/nova-simd"
  git config submodule.external_libraries/stk.url "${srcdir}/stk"
  git submodule update
}

build() {
  cd "$_name"
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE='None' \
        -DSC_PATH=/usr/include/SuperCollider/ \
        -DSYSTEM_STK=ON \
        -DSUPERNOVA=1\
        -W no-dev \
        -B build \
        -S .
  make VERBOSE=1 -C build
}

package() {
  depends+=('libfftw3f.so' 'libstk-4.6.1.so')
  cd "$_name"
  make DESTDIR="$pkgdir/" install -C build
  install -vDm 644 {{DEVELOPING,README}.md,TODO} \
    -t "${pkgdir}/usr/share/doc/${pkgname}/"
}