desktop/lilypond/PKGBUILD

51 lines
1.5 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=lilypond
pkgver=2.14.0
pkgrel=1
pkgdesc="A music engraving program, devoted to producing the highest-quality sheet music possible."
arch=('i686' 'x86_64')
url="http://lilypond.org/"
license=('GPL')
depends=('fontconfig' 'freetype2' 'ghostscript'
'guile' 'pango' 'python')
makedepends=('bison' 'flex' 'fontforge' 'gettext' 'gsfonts'
'perl' 'texinfo' 't1utils' 'texlive-core' 'netpbm')
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')
categories=('multimedia')
install=$pkgname.install
source=(http://download.linuxaudio.org/${pkgname}/sources/v2.14/${pkgname}-${pkgver}.tar.gz)
md5sums=('6c08f7246ce79934ec8a41ae7bea05d9')
build() {
cd "$srcdir/lilypond-$pkgver"
# Applying patch to spacing-spanner.cc
#patch -Np1 -i ${srcdir}/spacing-spanner-fix.patch
# 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
./configure --prefix=/usr
make all
}
package() {
cd "$srcdir/lilypond-$pkgver"
make DESTDIR="$pkgdir/" install
}