summaryrefslogtreecommitdiffstats
path: root/testing/fluidsynth/APKBUILD
blob: e44132419108f3212955b4f55be97224133bb34d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fluidsynth
pkgver=1.1.6
pkgrel=0
pkgdesc="Real-time software synthesizer"
url="http://www.fluidsynth.org/"
arch="all"
license="LGPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev alsa-lib-dev cmake dbus-dev ladspa-dev ncurses-dev
	jack-dev glib-dev libsndfile-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://downloads.sourceforge.net/fluidsynth/fluidsynth-$pkgver.tar.bz2"

_builddir="$srcdir"/fluidsynth-$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
	update_config_sub || return 1
}

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

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

md5sums="f6e696690e989098f70641364fdffad7  fluidsynth-1.1.6.tar.bz2"
sha256sums="d28b47dfbf7f8e426902ae7fa2981d821fbf84f41da9e1b85be933d2d748f601  fluidsynth-1.1.6.tar.bz2"
sha512sums="0ead8bf86c0edf6d98044eb16b52b85fac8bc3bdeb9c1478d0bceb4f5b38ca28218fcf2cd18cdd5608190dc70b7c39bde681765d01787bc84bc97c6ab3bbf946  fluidsynth-1.1.6.tar.bz2"