PKGBUILDs/community/ams/PKGBUILD
2013-11-25 21:05:02 +00:00

67 lines
1.9 KiB
Bash

# $Id$
# Maintainer : speps <speps at aur dot archlinux dot org>
# Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix qreal usage on ARM
_name=alsamodular
pkgname=ams
pkgver=2.0.1
pkgrel=1
pkgdesc="A realtime modular synthesizer and effect processor"
arch=('i686' 'x86_64')
url="http://alsamodular.sourceforge.net/"
license=('GPL')
depends=('qt4' 'clalsadrv' 'ladspa' 'jack')
makedepends=('fftw')
optdepends=('amb-plugins: ambisonic plugins'
'mcp-plugins: phaser, chorus and moog vcf plugins'
'rev-plugins: reverb plugins'
'swh-plugins: Steve Harris plugins'
'vco-plugins: oscillator plugins'
'fil-plugins: equaliser plugins'
'tap-plugins: toms audio plugins'
'wah-plugins: wah audio plugins'
'cmt: Computer Music Toolkit plugins'
'blop: bandlimited oscillator plugins'
'pvoc: phase-vocoding plugins'
'caps: the C* audio plugins')
install="$pkgname.install"
source=("http://downloads.sourceforge.net/project/$_name/$_name/$pkgver/$pkgname-$pkgver.tar.bz2"
"$pkgname.desktop" "$pkgname.png" '02-armel_minmaxfix.patch')
md5sums=('0d41bd5aac066aa98be45fd7ab12d35f'
'ffa277cffd52254f0297cbc2f200767e'
'0349171d5431f1c6e56085f080eb8c68'
'fd03a89ba2e99dbcab10141677822a2d')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# strip unwanted flags
sed -i 's/-m\(64\|arch=[a-z1-9]*\) *//' configure
# DSO link flag
export LIBS=" -ldl"
# Fix qreal usage on ARM
patch -p1 -i ../02-armel_minmaxfix.patch
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
# desktop file
install -Dm644 ../$pkgname.desktop \
"$pkgdir/usr/share/applications/$pkgname.desktop"
# icon
install -Dm644 ../$pkgname.png \
"$pkgdir/usr/share/pixmaps/$pkgname.png"
}