summaryrefslogtreecommitdiff
path: root/community/aeolus/PKGBUILD
blob: bf9deece43d90ee147ec0afac80bb969d26bc093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: PKGBUILD 95511 2013-08-13 03:47:20Z speps $
# Maintainer : speps <speps at aur dot archlinux dot org>
# Contributor: Tom K <tomk@runbox.com>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
# Contributor: Christoph Zeiler <arch at moonblade dot org>
# Contributor: Philipp Überbacher <murks at lavabit dot com>

_stopver=0.3.0
pkgname=aeolus
pkgver=0.9.0
pkgrel=1
pkgdesc="Synthesised pipe organ emulator"
arch=('i686' 'x86_64')
url="http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/"
license=('GPL3')
depends=('clthreads' 'clxclient' 'jack' 'zita-alsa-pcmi')
source=(${url}../downloads/{$pkgname-$pkgver,stops-$_stopver}.tar.bz2 $pkgname.conf)
md5sums=('6ae707e441f6d17eaabfde91c889bce2'
         '2a7b1cae820408fa1cc655800d08d88f'
         'b9cbca97ac4184f0b207faf4f58f72a9')

prepare() {
  cd "$pkgname-$pkgver/source"
  # strip ldconfig and -march=native
  sed -i '/ldconfig\|-march=native/d' Makefile
}

build() {
  cd "$pkgname-$pkgver/source"
  make PREFIX=/usr LIBDIR=lib
}

package(){
  cd "$pkgname-$pkgver/source"
  make DESTDIR="$pkgdir/" PREFIX=/usr LIBDIR=lib install

  # system config file
  install -Dm644 "$srcdir/$pkgname.conf" "$pkgdir/etc/$pkgname.conf"

  # stops
  cd "$srcdir/stops-$_stopver"
  find . -name definition -exec install -Dm644 {} ${pkgdir}/usr/share/$pkgname/stops/{} \;
  find . -name presets -exec install -Dm644 {} ${pkgdir}/usr/share/$pkgname/stops/{} \;
  find . -name '*.ae0' -exec install -Dm644 {} ${pkgdir}/usr/share/$pkgname/stops \;
}