# Contributor: Patrick McCarty # Contributor: Stefan Husmann # Maintainer: Erich Eckner pkgname=lilypond-devel pkgver=2.19.83 pkgrel=1 pkgdesc="An automated music engraving system (development version)" arch=('i686' 'pentium4' 'x86_64') url="http://lilypond.org/" license=('GPL') depends=('fontconfig' 'freetype2' 'guile1.8' 'pango' 'glib2' 'python2' ) makedepends=('fontforge' 'gsfonts' 't1utils' 'ghostscript' 'texlive-core>=2011.23170' 'tex-gyre-fonts' 'texlive-langcyrillic' 'dblatex' ) optdepends=('extractpdfmark: for reducing the size of pdf output significantly' 'tk: for the gui' ) provides=("lilypond=$pkgver") conflicts=('lilypond' 'lilypond-git') source=("http://lilypond.org/downloads/sources/v2.19/lilypond-${pkgver}.tar.gz" 'no_fontforge-versioncheck.patch') sha512sums=('c8a6acbff055196aba015ecd4786bed25934f04f3718ae9dd9a0dc49d2954f348806874cfe350903cd8bb2b25a0d05700ef5947cac180b20a8a355033ff98604' '343317fd0d88cae1ed35bba6038ed5d24a0664bd47acf27895e03f2e95466439d80bb780277236ef74bd929c29a16ae840d09c3d50dd2a994b035d0d63e015aa') prepare() { cd "$srcdir/lilypond-$pkgver" # python2 fix for file in $(find . -name '*.py' -print); do sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file done patch -Np1 < $srcdir/no_fontforge-versioncheck.patch rm -rf python/out/ } build() { cd "$srcdir/lilypond-$pkgver" export GUILE=/usr/bin/guile export GUILE_CONFIG=/usr/bin/guile-config export PYTHON="python2" export PYTHON_CONFIG="python2-config" export GUILE=/usr/bin/guile1.8 export GUILE_CONFIG=/usr/bin/guile-config1.8 ./autogen.sh --prefix=/usr \ --disable-documentation # FIXME: the extra LDFLAG should not be needed; # this is a regression somewhere make LDFLAGS+=" -pthread" all } package() { cd "$srcdir/lilypond-$pkgver" make DESTDIR="$pkgdir/" \ vimdir="/usr/share/vim/vimfiles" install rm -rf "$pkgdir/usr/share/man" }