blob: dfcb64dafae5d78c8161d8d3670453ab6db4593c (
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
|
# Maintainer: schaap137 <dojo86@gmail.com>
pkgname=chugins-git
pkgver=chuck.1.5.2.1.r2.gebc3223
pkgrel=2
pkgdesc="Repository for ChuGins (to use with chuck)"
arch=('i686' 'x86_64')
url="https://github.com/ccrma/chugins"
license=('GPL')
depends=('chuck')
makedepends=('git')
source=("$pkgname"::"git+https://github.com/ccrma/chugins.git")
#buildflags=('FLAGS="${FLAGS} -std=c++14"')
sha256sums=('SKIP')
pkgver() {
# The version
cd "$srcdir/$pkgname"
git describe --long --tags | sed "s/\([^-]*-g\)/r\1/;s/-/./g" | sed "s/chugins.//g"
}
prepare() {
cd "$srcdir/$pkgname"
# Change JACK to PULSE if you use chuck-pulse, or comment out the next line if you use chuck-alsa
sed -e 's/__LINUX_ALSA__/__LINUX_JACK__/g' -i **/makefile.linux
sed -e 's/\/usr\/local\/lib/\/usr\/lib/g' -i **/makefile.linux makefile
# Temporary fix until this code becomes fully ISO C++17 compliant - with thanks to phaise
sed -i '71s/^/FLAGS+= -Wno-error=register/' Mesh2D/makefile
}
build() {
cd "$srcdir/$pkgname"
make linux
}
package() {
cd "$srcdir/$pkgname"
mkdir -p "$pkgdir"/usr/lib/chuck
install -Dm755 **/*.chug "$pkgdir"/usr/lib/chuck/
mkdir -p "$pkgdir"/usr/share/doc/chuck/examples/chugins
while read -r file; do install -Dm644 "$file" "$pkgdir/usr/share/doc/chuck/examples/chugins/$file"; done < <(find . -type f -regex '.*\.\(md\|wav\|ck\)')
}
|