summaryrefslogtreecommitdiff
path: root/pcr/sineshaper/PKGBUILD
blob: 61560a7702375d062bc81ec15c8dcf0baf8ca5cc (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
# Maintainer : Guest One <theguestone at gmail dot com>
# patch taken from https://aur.archlinux.org/packages/sineshaper/
pkgname=sineshaper
pkgver=0.4.2
pkgrel=1
pkgdesc="A monophonic DSSI synth plugin."
arch=('i686')
url="http://www.student.nada.kth.se/~d00-llu/music_dssi.php?lang=en"
license=('GPL')
depends=('libglademm' 'dssi')
makedepends=('ladspa')
source=("http://ll-plugins.sourceforge.net/release/$pkgname-$pkgver.tar.gz" gcc-4.3.patch)
md5sums=('952cb5bde0ae4fe2274859df5ed1ee61'
         '78c44bb7b1586917224f26aaa9545e9e')

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

  # gcc 4.3 patch
  patch -Np1 -i "$srcdir/${source[1]}"

  # DSO link fix
  LDFLAGS+="-lgthread-2.0" \
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install

  # rename launcher
  mv "$pkgdir/usr/bin/$pkgname.sh" \
     "$pkgdir/usr/bin/$pkgname"
}