1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
2 # Contributor: James Morris <jwm.art.net@gmail.com>
7 pkgdesc="Analogue Modeling SYNTHesizer"
9 url="http://code.google.com/p/amsynth/"
11 depends=('gtkmm' 'alsa-lib' 'jack' 'libsndfile' 'lash' 'unzip')
12 makedepends=('subversion' 'pkgconfig' 'autoconf' 'automake')
16 md5sums=() #generate with 'makepkg -g'
18 _svntrunk=http://amsynth.googlecode.com/svn/trunk
21 # heavily based upon aqualung-svn PKGBUILD:
26 if [ -d ${_svnmod}/.svn ]; then
27 cd $_svnmod && svn up -r $pkgver && cd ${srcdir}
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
35 if [ -d $_svnmod-build ]; then rm -rf $_svnmod-build; fi
36 cp -r $_svnmod $_svnmod-build
39 ./autogen.sh || automake -a || return 1
40 ./configure --prefix=/usr
42 # fix something or other to do with capitalization:
43 # sed -i -e 's|/amSynth|/amsynth|' src/main.cc
44 # commented out due to breaking skin location (see below)
47 make DESTDIR=${pkgdir} install
48 install -D -m644 amsynth.desktop $startdir/pkg/usr/share/applications/amsynth.desktop
49 install -D -m644 amsynth.png $startdir/pkg/usr/share/pixmaps/amsynth.png
50 install -D -m644 amsynth-skin.zip $startdir/pkg/usr/share/amSynth/amsynth-skin.zip