# Contributor: Patrick McCarty # Maintainer: Stefan Husmann pkgname=lilypond-devel pkgver=2.19.29 pkgrel=1 pkgdesc="An automated music engraving system (development version)" arch=('i686' 'x86_64') url="http://lilypond.org/" license=('GPL') depends=('fontconfig' 'freetype2' 'guile1.8' 'pango' 'python2' 'ghostscript') makedepends=('fontforge' 'gsfonts-cyr' # from boohomil's infinality-bundle-fonts repo 't1utils' 'texlive-core>=2011.23170') optdepends=('netpbm: building HTML documentation' 'imagemagick: building HTML documentation' 'ttf-kochi-substitute: building HTML documentation' 'texi2html>=1.82: building HTML documentation' 'rsync: installing HTML documentation') provides=("lilypond=$pkgver") conflicts=('lilypond' 'lilypond-git') source=("http://download.linuxaudio.org/lilypond/sources/v2.19/lilypond-${pkgver}.tar.gz" 'no_fontforge-versioncheck.patch') md5sums=('bea6534a56da08d2a1f777d5bf4c3717' '84c92f047d703a4b798092cfc4d83e32') 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" }