aboutsummaryrefslogtreecommitdiffstats
path: root/main/jack/APKBUILD
blob: 08cd5d4a007edd7f666b0767feabbf425c30923b (plain) (blame)
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
65
66
67
68
69
70
71
72
73
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jack
pkgver=1.9.10
pkgrel=2
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 python2"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbus $pkgname-example-clients:_clients"
source="https://dl.dropboxusercontent.com/u/28869550/jack-$pkgver.tar.bz2
	fix-execinfo.patch
	jack-gcc6.patch
	"

_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="4aeb91d7ae0cabce98355436ed4f217a  jack-1.9.10.tar.bz2
66a37f3313c8268291910db19e637389  fix-execinfo.patch
f2b72352825475b393e744225d614dc9  jack-gcc6.patch"
sha256sums="5bc6336e6ac9799e3cb241915e2ba5d01b030589bbb2afae39579a59ef0f2f56  jack-1.9.10.tar.bz2
0fd5deada71ebd772e8a25032a5258b8686a4394ae9c4066377bb9531031afb0  fix-execinfo.patch
63a30174afe7b3a1084d19f178fbe7bdeaa7362e4b5a8f54ef287d5261cccf42  jack-gcc6.patch"
sha512sums="d64d233c2d626a4ae635f009a7209c2c8740c7959988d282e733b5fc663c168301a2aa2b517dff80f44cb25417aeb5ccca87da5c24616dadf38d69a6cb307e7c  jack-1.9.10.tar.bz2
b5abec7e67485d1c13f399b5961539177dd35d21c5dd95e0aa767adb0f5b1e588e9ca2f9b29cc4d66fc039311ff7eacc4cf21f6700ef0a2c8de99b63cb00f84d  fix-execinfo.patch
31bc3451c9df0700632d1d29fe22da072f8e195cc3bcfef847867dda3d54e6636b3557b10e623a126f614e6b4b5250d02f5cfbda6b57dd341fe6b09319121675  jack-gcc6.patch"