updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / denemo-git / PKGBUILD
blob62ecca2b151ac25bc31255c2ac7930854aecca70
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>
8 pkgname=denemo-git
9 pkgver=20100329
10 pkgrel=1
11 pkgdesc="The music notation editor"
12 arch=('i686' 'x86_64')
13 url="http://www.denemo.org"
14 license=('GPL')
15 makedepends=('git')
16 depends=('aubio' 'portaudio' 'lilypond' 'gtk2' 'libxml2' 'guile' 'jack' 'gtksourceview2' 'fluidsynth' 'cairo')
17 options=('!libtool')
18 source=()
19 md5sums=()
21 _gitroot="git://git.savannah.gnu.org/denemo.git"
22 _gitname="denemo"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot
33   fi
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"
42   #
43   # BUILD HERE
44   #
46   ./autogen.sh
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
50   make || return 1
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
57