1 # Contributor: Friedrich Weber <fred@reichbier.de>
3 # Based on the PKGBUILD of `denemo` which is
4 # Contributor: Philipp Sandhaus <philipp.sandhaus@gmx.de>
5 # Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
6 # Contributor: Gnud <ach.gnud@gmail.com>
11 pkgdesc="The music notation editor"
12 arch=('i686' 'x86_64')
13 url="http://www.denemo.org"
16 depends=('aubio' 'portaudio' 'lilypond' 'gtk2' 'libxml2' 'guile' 'jack' 'gtksourceview2' 'fluidsynth' 'cairo')
21 _gitroot="git://git.savannah.gnu.org/denemo.git"
26 msg "Connecting to GIT server...."
28 if [ -d $_gitname ] ; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
35 msg "GIT checkout done or server timeout"
36 msg "Starting make..."
38 rm -rf "$srcdir/$_gitname-build"
39 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40 cd "$srcdir/$_gitname-build"
47 #PKGCONFIG chokes on guile, so we set variables manually
48 GUILE_LIBS=$(guile-config link) GUILE_CFLAGS=$(guile-config compile) ./configure --prefix=/usr --enable-jack
52 #fix data install paths to include DESTDIR
53 sed -i -e 's/cp -r actions /cp -r actions $\(DESTDIR\)/' Makefile
54 sed -i -e 's/755 \$(datadir)/755 $\(DESTDIR\)\$\(datadir\)/' Makefile
56 make DESTDIR=$startdir/pkg install