updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fluidsynth-svn / PKGBUILD
blob546b5b83e71b33bdd40e077b55694e599fc3c1c6
1 # $Id: PKGBUILD 102552 2010-12-08 07:09:52Z schiv $
2 # Contributor:  Ray Rashif <schiv@archlinux.org>
3 # Contributor: damir <damir@archlinux.org>
4 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
6 pkgname=fluidsynth-svn
7 pkgver=416
8 pkgrel=1
9 pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications"
10 arch=(i686 x86_64)
11 url="http://www.fluidsynth.org/"
12 depends=('glib2' 'jack' 'dbus-core' 'libpulse')
13 makedepends=('cmake' 'ladspa' 'doxygen')
14 optdepends=('bash: init script')
15 license=('LGPL')
16 provides=('fluidsynth')
17 conflicts=('fluidsynth')
18 backup=('etc/conf.d/fluidsynth')
19 source=(fluidsynth.conf
20         fluidsynthd)
22 _svntrunk=https://fluidsynth.svn.sourceforge.net/svnroot/fluidsynth/trunk/fluidsynth
23 _svnmod=fluidsynth
25 build() {
26         cd "$srcdir"
27         
28         if [ -d $_svnmod/.svn ]; then
29                 (cd $_svnmod && svn up -r $pkgver)
30   else
31                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32                 fi
33                         
34         msg "SVN checkout done or server timeout"
35         msg "Starting make..."
36                         
37         rm -rf "$srcdir/$_svnmod-build"
38         cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
39         cd "$srcdir/$_svnmod-build"
40                         
41   cmake . -DCMAKE_INSTALL_PREFIX=/usr \
42           -DCMAKE_BUILD_TYPE=Release \
43           -Denable-ladspa=ON \
44           -DLIB_SUFFIX=""
45   make
48 package() {
49         cd "$srcdir/$_svnmod-build"
50         
51   make DESTDIR="$pkgdir/" install
53   install -Dm644 "$srcdir/fluidsynth.conf" \
54     "$pkgdir/etc/conf.d/fluidsynth"
56   install -Dm755 "$srcdir/fluidsynthd" \
57     "$pkgdir/etc/rc.d/fluidsynth"
60 md5sums=('16c5f4d4cbdddc6c5fcbd4fd4cc142f1'
61          'b296dbfb524c2164f552f68bd9abe2ec')