aboutsummaryrefslogtreecommitdiffstats
path: root/main/jack/APKBUILD
blob: 0471090eb7700f3df695cf0c9775035fd5bc583b (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
58
59
60
61
62
63
64
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jack
pkgver=1.9.9.5
pkgrel=0
pkgdesc="The Jack Audio Connection Kit"
url="http://www.jackaudio.org"
arch="all"
license="GPLv2 GPLv2+ LGPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev alsa-lib-dev dbus-dev expat-dev libsamplerate-dev
	libsndfile-dev ncurses-dev readline-dev python"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbus $pkgname-example-clients:_clients"
source="http://www.jackaudio.org/downloads/jack-$pkgver.tar.bz2"

_builddir="$srcdir"/jack-$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
	sed -i -e '1s:#!/bin/bash:!#/bin/sh:' svnversion_regenerate.sh
}

build() {
	cd "$_builddir"
	./waf configure \
		-j1 \
		--prefix=/usr \
		--mandir=/usr/share/man/man1 \
		--libdir=/usr/lib \
		--dbus \
		--alsa \
		--classic \
		|| return 1

	./waf build -j${JOBS:-2} -v || return 1
}

package() {
	cd "$_builddir"
	./waf --destdir="$pkgdir" install || return 1
}

dbus() {
	pkgdesc="Jack D-Bus launcher"
	mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/bin/jackdbus "$subpkgdir"/usr/bin/ || return 1
	mv "$pkgdir"/usr/share/dbus* "$subpkgdir"/usr/share/|| return 1
}

_clients() {
	pkgdesc="Example clients that use Jack"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/*_* "$subpkgdir"/usr/bin/
}

md5sums="6c9de6b89db9d7076fa2ce222816cf4c  jack-1.9.9.5.tar.bz2"
sha256sums="65ef5acceabb1ebd4ac8c437be47a522292e3c2a1f7bfa656de7392d9351ebbd  jack-1.9.9.5.tar.bz2"
sha512sums="173a10943c98cb17f0041216cc24ce03d5e147f27be121fdf66c4e9d21ba8bf125a1749b985cacffb075618d92025231eb047c754d33d777275373d010a85e27  jack-1.9.9.5.tar.bz2"