1 # Maintainer: Patrick McCarty <pnorcks at gmail dot com>
6 pkgdesc="An automated music engraving system (Git snapshot)"
8 url="http://lilypond.org/"
10 depends=('fontconfig' 'freetype2' 'ghostscript'
11 'guile' 'pango' 'python2')
12 makedepends=('bison' 'flex' 'fontforge' 'gettext' 'git' 'gsfonts'
13 'perl' 'texinfo' 't1utils' 'texlive-core>=2011.23170')
14 optdepends=('netpbm: building HTML documentation'
15 'imagemagick: building HTML documentation'
16 'ttf-kochi-substitute: building HTML documentation'
17 'texi2html>=1.82: building HTML documentation'
18 'rsync: installing HTML documentation')
20 conflicts=('lilypond' 'lilypond-devel')
21 install=$pkgname.install
22 source=(python2.patch)
23 sha256sums=('80f5be4313d08bd481d0dd04e767ebb79d1b99b05fb373b5d4cb96cdbb5cf4b4')
25 _gitroot="git://git.sv.gnu.org/lilypond.git"
30 msg "Connecting to git.sv.gnu.org..."
32 if [ -d $_gitname ] ; then
33 cd $_gitname && git pull origin
34 msg "The local files are updated."
36 git clone --depth 1 $_gitroot
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
42 rm -rf "$srcdir/$_gitname-build"
43 cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
47 for file in $(find . -name '*.py' -print); do
48 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
49 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
52 patch -p1 -i "$srcdir/python2.patch"
54 PYTHON="python2" ./autogen.sh --prefix=/usr
59 cd "$srcdir/$_gitname-build"
60 make DESTDIR="$pkgdir/" install
63 # vim:set ts=2 sw=2 et: