updated on Wed Jan 25 04:02:27 UTC 2012
[aur-mirror.git] / lilypond-devel / PKGBUILD
blobf28ff9eb6895651a111487c3baccbc75c695f266
1 # Maintainer: Patrick McCarty <pnorcks at gmail dot com>
3 pkgname=lilypond-devel
4 pkgver=2.15.27
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 sha256sums=('14a6a32cfae76452db8f9f2fe0bf51470dd3f35ca9a7dec489b6c3b79e1cfb6e')
25 build() {
26   cd "$srcdir/lilypond-$pkgver"
28   # python2 fix
29   for file in $(find . -name '*.py' -print); do
30     sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
31     sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
32   done
34   export PYTHON="python2"
35   export PYTHON_CONFIG="python2-config"
37   ./configure --prefix=/usr
38   make all
41 package() {
42   cd "$srcdir/lilypond-$pkgver"
43   make DESTDIR="$pkgdir/" vimdir="/usr/share/vim/vimfiles" install
46 # vim:set ts=2 sw=2 et: