void-packages/srcpkgs/qjackctl/template
2018-11-26 02:57:48 -02:00

24 lines
864 B
Bash

# Template file for 'qjackctl'
pkgname=qjackctl
version=0.5.5
revision=1
build_style=gnu-configure
configure_args="--enable-jack-version"
hostmakedepends="pkg-config"
makedepends="qt5-devel jack-devel qt5-x11extras-devel"
depends="desktop-file-utils hicolor-icon-theme jack"
short_desc="JACK Audio Connection Kit - Qt GUI Interface"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://qjackctl.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=e5eb7b9249ba22f5301645f792eb34e7306b9002594eb945c9941a9586c2ffe7
if [ "${CROSS_BUILD}" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel qt5-x11extras-devel"
fi
post_extract() {
sed -i '21i#include <unistd.h> // gethostname()' src/qjackctl.cpp
sed -i "s/@\$(QMAKE).*/& QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX/" Makefile.in
}