updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / lilypond-devel / PKGBUILD
blob71807a019c747574aa289db71674eab7461e1609
1 # Maintainer: Patrick McCarty <pnorcks at gmail dot com>
3 pkgname=lilypond-devel
4 pkgver=2.15.24
5 pkgrel=1
6 pkgdesc="An automated music engraving system (development version)"
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' '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=$pkgver")
20 conflicts=('lilypond' 'lilypond-git')
21 install=$pkgname.install
22 source=(http://download.linuxaudio.org/lilypond/sources/v2.15/lilypond-$pkgver.tar.gz
23         python2.patch)
24 sha256sums=('368be680ce2305ca3fa35aba63a62c75f6babd3ecfb46b94f81d1dadc43e1c18'
25             '80f5be4313d08bd481d0dd04e767ebb79d1b99b05fb373b5d4cb96cdbb5cf4b4')
27 build() {
28   cd "$srcdir/lilypond-$pkgver"
30   # python2 fix
31   for file in $(find . -name '*.py' -print); do
32     sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
33     sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
34   done
36   patch -p1 -i "$srcdir/python2.patch"
38   PYTHON="python2" ./autogen.sh --prefix=/usr
39   make all
42 package() {
43   cd "$srcdir/lilypond-$pkgver"
44   make DESTDIR="$pkgdir/" vimdir="/usr/share/vim/vimfiles" install
47 # vim:set ts=2 sw=2 et: