community/jack2: proper PKGBUILD

Few changes, it's closer to what pkgbuild should look like.
This commit is contained in:
Jarosław Rymut 2013-06-18 02:14:20 +02:00
parent 89449e61ee
commit c7f0abad92

View file

@ -4,13 +4,16 @@
# Contributor: Philipp Überbacher <hollunder at gmx dot at> # Contributor: Philipp Überbacher <hollunder at gmx dot at>
# Contributor: Thomas Bahn <thomas-bahn at gmx dot net> # Contributor: Thomas Bahn <thomas-bahn at gmx dot net>
# ALARM: Jaros³aw Rymut <jarymut+github@gmail.com>
# - patch for packed structures, arm does not like them
pkgbase=jack2 pkgbase=jack2
pkgname=('jack2' 'jack2-dbus') pkgname=('jack2' 'jack2-dbus')
#pkgname= # single build (overrides split) #pkgname= # single build (overrides split)
_tarname=jack _tarname=jack
pkgver=1.9.9.5 pkgver=1.9.9.5
pkgrel=3 pkgrel=3
arch=('armv7h') arch=('any')
url="http://jackaudio.org/" url="http://jackaudio.org/"
backup=(etc/security/limits.d/99-audio.conf) backup=(etc/security/limits.d/99-audio.conf)
license=('GPL') license=('GPL')
@ -44,6 +47,9 @@ _wafconf() {
prepare() { prepare() {
cd "$srcdir" cd "$srcdir"
# apply patch for ARM
patch -d $_tarname-$pkgver -p1 -i ../jack2_armel.diff
# Some optimisation bug exists for current GCC # Some optimisation bug exists for current GCC
# see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53663 # see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53663
@ -65,7 +71,6 @@ build() {
if _isbuild jack2; then if _isbuild jack2; then
cd $_tarname-$pkgver cd $_tarname-$pkgver
msg2 "Running Mixed D-Bus/Classic build" msg2 "Running Mixed D-Bus/Classic build"
patch -p1 -i ../jack2_armel.diff
_wafconf --classic --dbus _wafconf --classic --dbus
python2 waf build $MAKEFLAGS python2 waf build $MAKEFLAGS
cd .. cd ..
@ -75,7 +80,6 @@ build() {
if _isbuild jack2-dbus; then if _isbuild jack2-dbus; then
cd $_tarname-dbus-$pkgver cd $_tarname-dbus-$pkgver
msg2 "Running D-Bus-only build" msg2 "Running D-Bus-only build"
patch -p1 -i ../jack2_armel.diff
_wafconf --dbus _wafconf --dbus
python2 waf build $MAKEFLAGS python2 waf build $MAKEFLAGS
cd .. cd ..