updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lilypond-git / PKGBUILD
blob82742113fd060f0737f933ef4722b4ef173d2290
1 # Maintainer: Patrick McCarty <pnorcks at gmail dot com>
3 pkgname=lilypond-git
4 pkgver=20110812
5 pkgrel=1
6 pkgdesc="An automated music engraving system (Git snapshot)"
7 arch=('i686' 'x86_64')
8 url="http://lilypond.org/"
9 license=('GPL')
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')
19 provides=('lilypond')
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"
26 _gitname="lilypond"
28 build() {
29   cd "$srcdir"
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."
35   else
36     git clone --depth 1 $_gitroot
37   fi
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"
46   # python2 fix
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
50   done
52   patch -p1 -i "$srcdir/python2.patch"
54   PYTHON="python2" ./autogen.sh --prefix=/usr
55   make all
58 package() {
59   cd "$srcdir/$_gitname-build"
60   make DESTDIR="$pkgdir/" install
63 # vim:set ts=2 sw=2 et: