From c5d36d17b696e77783a4b6a12df38d7bb3d564d7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 22 Nov 2016 11:09:56 +0100 Subject: lilypond-devel neu --- lilypond-devel/PKGBUILD | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 lilypond-devel/PKGBUILD (limited to 'lilypond-devel/PKGBUILD') diff --git a/lilypond-devel/PKGBUILD b/lilypond-devel/PKGBUILD new file mode 100644 index 00000000..6207b4e3 --- /dev/null +++ b/lilypond-devel/PKGBUILD @@ -0,0 +1,73 @@ +# Contributor: Patrick McCarty +# Contributor: Stefan Husmann +# Maintainer: Erich Eckner + +pkgname=lilypond-devel +pkgver=2.19.51 +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' + 'glib2' + 'python2') +makedepends=('fontforge' + 'gsfonts' + 't1utils' + 'ghostscript' + 'texlive-core>=2011.23170' + 'tex-gyre-fonts' +) +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') +sha256sums=('81163eccaeee083681b93b727eed00ed93f57899df9d423aba76f5e800db92ac' + 'e74391f718babb984c5f637397162cf096c4716f5b9a21346ec76035cfc80817') + +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" +} -- cgit v1.2.3-54-g00ecf