summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce305a47481137b78f8e47a481fd9b5194a55354 (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
# Maintainer: Corey Mwamba <contact.me@coreymwamba.co.uk>

pkgname=snd-gtk-alsa-cvs
pkgver=16.3
pkgrel=1
pkgdesc="A sound editor with Alsa and GTK GUI. CVS version"
arch=('i686' 'x86_64')
url="http://ccrma.stanford.edu/software/snd/"
license=('custom')
depends=('fftw' 'gsl' 'gtk3' 'alsa-lib')
makedepends=('ladspa' 'cvs')
provides=('snd-ls' 'snd')
conflicts=('snd-ls' 'snd')

_cvsroot=":pserver:snd.cvs.sourceforge.net:/cvsroot/snd"
_cvsmod="cvs-snd"

build() {
  cd "$srcdir"
  msg "Connecting to $_cvsmod.sourceforge.net CVS server...."

  if [[ -d "$_cvsmod/CVS" ]]; then
    cd "$_cvsmod"
    cvs -z3 update -d
  else
    cvs -z3 -d "$_cvsroot" co -f "$_cvsmod"
    cd "$_cvsmod"
  fi

  msg "CVS checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_cvsmod-build"
  cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
  cd "$srcdir/$_cvsmod-build"
  ./configure --prefix=/usr --without-pulseaudio --without-portaudio --with-alsa --with-ladspa
  make LIBS="-lm -ldl -lpthread"
}

package() {
  cd "$srcdir/$_cvsmod-build"
  make prefix=$pkgdir/usr install
  rm -f $pkgdir/usr/share/$_pkgname/*.{fs,rb}
  install -D -m 644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
}