summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1281b009f20e83abcca1eb1c5806d3b0df960e7d (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
# Maintainer: Mads Kjeldgaard<mail@madskjeldgaard.dk>
pkgname=supercollider-autotune-git
pkgver=r6.cc9fedf
pkgrel=1
pkgdesc='Description'
arch=('any')
url='https://github.com/bolkaaa/autotune'
license=('GPL')
groups=('pro-audio' 'supercollider-plugins')
depends=('supercollider')
makedepends=('git' 'cmake' 'supercollider-headers-git')
optdepends=()
source=("$pkgname-$pkgver"::git+$url.git)
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname-$pkgver"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
		cd "$srcdir/$pkgname-$pkgver"
		mkdir build; cd build
		SC_SRC="/usr/share/supercollider-headers"
		cmake -DSC_PATH=$SC_SRC -DCMAKE_BUILD_TYPE=RELEASE ..
		make
}


package() {
	cd "$srcdir/$pkgname-$pkgver"

	DEST="$pkgdir/usr/share/SuperCollider/Extensions/AutoTune"
	mkdir -p $DEST;

	install -Dm755 ./build/AutoTune.so $DEST/
	install -Dm755 ./SC/AutoTune.sc $DEST/

}