mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 16:12:22 +01:00
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=jack
|
|
_realname=jack2
|
|
pkgver=1.9.12
|
|
pkgrel=1
|
|
pkgdesc="The Jack Audio Connection Kit"
|
|
url="http://www.jackaudio.org"
|
|
arch="all"
|
|
license="GPL-2.0 GPL-2.0-or-later LGPL-2.0-or-later"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="$depends_dev alsa-lib-dev dbus-dev expat-dev libsamplerate-dev
|
|
libsndfile-dev ncurses-dev readline-dev python2 linux-headers"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbus $pkgname-example-clients:_clients"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jackaudio/jack2/archive/v${pkgver}.tar.gz
|
|
fix-execinfo.patch
|
|
"
|
|
|
|
_builddir="$srcdir"/$_realname-$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/
|
|
}
|
|
|
|
sha512sums="f0271dfc8f8e2f2489ca52f431ad4fa420665816d6c67a01a76da1d4b5ae91f6dad8c4e3309ec5e0c159c9d312ed56021ab323d74bce828ace26f1b8d477ddfa jack-1.9.12.tar.gz
|
|
b5abec7e67485d1c13f399b5961539177dd35d21c5dd95e0aa767adb0f5b1e588e9ca2f9b29cc4d66fc039311ff7eacc4cf21f6700ef0a2c8de99b63cb00f84d fix-execinfo.patch"
|