PKGBUILDs/community/lash/PKGBUILD
2017-12-24 20:38:01 +00:00

44 lines
1.3 KiB
Bash

# $Id$
# Maintainer: David Runge <dave@sleepmap.de>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: DonVla <donvla@users.sourceforge.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix FTBFS on ARM
pkgname=lash
pkgver=0.6.0~rc2
_relver=0.6.0.594
pkgrel=11
pkgdesc="A session management system for JACK and ALSA"
arch=('x86_64')
url="http://lash.nongnu.org/"
license=('GPL2')
depends=('gtk2' 'jack' 'python2')
#install=$pkgname.install
source=("https://download.savannah.gnu.org/releases/lash/${pkgname}-${pkgver}.tar.bz2"
"fix-manual-generation.patch"
'04_disable_stacktrace.patch')
sha512sums=('704e24ccadccb469e820be5fb58dd4d953a8fc2903cd857a290267a87dda596639ec381d5cb7cdfcd715df7d98d6570e52731bddd17f8a3425edd8b699632401'
'25bb9f97bc6ff7543fea39242bc321b40cd35ba042248671e958348f9e250f810ea1e4753918aceba799b0fdd886184af57a7c497796034b999ca8d6b85e1252')
prepare() {
cd "${pkgname}-${_relver}"
patch -Np0 -i "../fix-manual-generation.patch"
patch -p1 -i ../04_disable_stacktrace.patch
# Python2 fixes
export PYTHON="python2"
sed -i "s#env python#&2#" clients/lash_control
}
build() {
cd "${pkgname}-${_relver}"
export LDFLAGS="-ldl -lm"
./configure --prefix=/usr
make
}
package() {
cd "${pkgname}-${_relver}"
make DESTDIR="${pkgdir}" install
}