blob: f52cf219b161fae7bfcf4ec317de44336c4bffd8 (
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
|
# Maintainer: Mads Kjeldgaard<mail@madskjeldgaard.dk>
pkgname=supercollider-sonoro1234-ugens-git
pkgver=r55.33f352e
pkgrel=1
pkgdesc="sonoro1234's SuperCollider UGens"
arch=('any')
url='https://github.com/sonoro1234/MyUGens'
license=('GPL')
groups=('pro-audio' 'supercollider-plugins')
depends=('supercollider')
makedepends=('git' 'cmake' 'supercollider-headers-git')
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() {
SC_SRC="/usr/share/supercollider-headers"
cd "$srcdir/$pkgname"
git submodule update --init --recursive
mkdir build; cd build
DEST="$pkgdir/usr/share/SuperCollider/Extensions"
cmake -DSC_PATH=$SC_SRC -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$DEST ..
make
}
package() {
cd "$srcdir/$pkgname/build"
cmake --build . --config Release --target install
}
|