summaryrefslogtreecommitdiff
path: root/pcr/ams/PKGBUILD
blob: 75a5062a7f7aaae9ea9d0cacdcb0190bcf0ebb6a (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
# Maintainer : Guest One <theguestone at gmail dot com>

_name=alsamodular
pkgname=ams
pkgver=2.0.1
pkgrel=1
pkgdesc="Alsa Modular Synth is a realtime modular synthesizer and effect processor"
arch=('i686')
url="http://alsamodular.sourceforge.net/"
license=('GPL')
depends=('qt4' 'clalsadrv' 'ladspa' 'jack')
makedepends=('fftw')
optdepends=('swh-plugins: Steve Harris plugins'
            'cmt: Computer Music Toolkit plugins')
install="$pkgname.install"
source=("http://downloads.sourceforge.net/project/$_name/$_name/$pkgver/$pkgname-$pkgver.tar.bz2"
        "$pkgname.desktop" "$pkgname.png")
md5sums=('0d41bd5aac066aa98be45fd7ab12d35f'
         'ffa277cffd52254f0297cbc2f200767e'
         '0349171d5431f1c6e56085f080eb8c68')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # DSO link flag
  export LIBS=" -ldl"

  ./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"
}