summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 387b8449cd6d5c72c0405d765d592804a71fe7ff (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: aik2 <aik2mlj@gmail.com>

pkgname=chuck-git
_name=chuck
pkgdesc='Concurrent, on-the-fly audio programming language'
pkgver=1.5.4.2.r1.gb800b05
pkgrel=1
arch=(x86_64)
url='https://chuck.stanford.edu/'
license=('GPL-2.0-or-later OR MIT')
depends=(jack libsndfile)
groups=(pro-audio)
makedepends=(git)
optdepends=(
  "chugl: ChucK Graphics Library"
  "chugins-git: Officially Supported ChuGins (plug-ins for ChucK)"
)
source=("$_name::git+https://github.com/ccrma/chuck.git")
provides=($_name)
conflicts=($_name)
sha256sums=('SKIP')

pkgver() {
  cd $_name
  # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  git describe --long --tags --abbrev=7 | sed "s/\([^-]*-g\)/r\1/;s/-/./g" | sed "s/chuck.//g"
}

build() {
  cd "$_name/src"
  make linux-jack
}

package() {
  cd $_name
  install -d "$pkgdir/usr/share/doc/$_name"
  cp -r examples "$pkgdir/usr/share/doc/$_name"
  install -Dm755 src/$_name "$pkgdir/usr/bin/$_name"
}