summaryrefslogtreecommitdiffstats
path: root/testing/dssi/APKBUILD
blob: 20ab9e044c816b0fb6f144d6c8d142d60a51970f (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
56
57
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dssi
pkgver=1.1.1
pkgrel=0
pkgdesc="Disposable Soft Synth Interface"
url="http://dssi.sourceforge.net/"
arch="all"
license="MIT"
depends=""
depends_dev="alsa-lib-dev ladspa-dev"
makedepends="$depends_dev jack-dev libsamplerate-dev libsndfile-dev liblo-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-examples"
source="http://download.sf.net/sourceforge/dssi/dssi-$pkgver.tar.gz"

_builddir="$srcdir"/dssi-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1

	# sanity check
	make -C tests controller && tests/controller
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/dssi/*.la
}

examples() {
	pkgdesc="DSSI plugin examples"
	mkdir -p "$subpkgdir"/usr/lib/dssi/
	mv "$pkgdir"/usr/lib/dssi/less_trivial* \
		"$pkgdir"/usr/lib/dssi/trivial_* \
		"$pkgdir"/usr/lib/dssi/karplong* \
		"$subpkgdir"/usr/lib/dssi/
}
md5sums="619ab73c883b02dc37ddb37001591f8b  dssi-1.1.1.tar.gz"