* add lilypond

This commit is contained in:
Alexander Baldeck 2020-07-30 14:16:05 +02:00
parent ded5f3c58c
commit 2dd39a75b8
2 changed files with 61 additions and 0 deletions

48
lilypond/PKGBUILD Normal file
View File

@ -0,0 +1,48 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>
# Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
pkgname=lilypond
pkgver=2.21.4
pkgrel=1
pkgdesc="An automated music engraving system"
arch=(x86_64 powerpc64le)
url="http://lilypond.org"
license=('GPL')
depends=('fontconfig' 'freetype2' 'guile' 'ghostscript' 'glib2' 'pango')
optdepends=('python2: for lilypond-book and other scripts')
makedepends=('flex' 'bison' 'gettext' 'mftrace' 'texinfo' 'fontforge' 't1utils'
'gsfonts' 'texi2html' 'dblatex' 'texlive-langcyrillic' 'imagemagick'
'zip' 'rsync' 'netpbm' 'texlive-core' 'tex-gyre-fonts' 'python2')
options=('emptydirs')
source=("http://lilypond.org/downloads/sources/v${pkgver%.*}/$pkgname-$pkgver.tar.gz"
lilyfontsize.patch)
sha256sums=('db57981fc27d75025efa769a20465ca20b0889b7ae562bbb199886bf986a05f2'
'17b86b7a0b09b73cb5cf8751464571cf6a785c0b1a23db425cc828855a9d8ae6')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -e 's|1.82, 1.82|1.82|g' -i configure.ac # Remove version constraint on texi2html
patch -p1 -i "$srcdir/lilyfontsize.patch"
./autogen.sh --noconf
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure \
--prefix=/usr \
--build=${CHOST}
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" vimdir="/usr/share/vim/vimfiles" install
}

View File

@ -0,0 +1,13 @@
diff -wbBur lilypond-2.18.2/lily/pango-font.cc lilypond-2.18.2.fix/lily/pango-font.cc
--- lilypond-2.18.2/lily/pango-font.cc 2014-03-17 19:29:16.000000000 +0400
+++ lilypond-2.18.2.fix/lily/pango-font.cc 2016-12-02 19:36:55.634555707 +0300
@@ -315,7 +315,8 @@
pango_fc_font_unlock_face (fcfont);
pango_glyph_string_free (pgs);
pgs = 0;
- PangoFontDescription *descr = pango_font_describe (pa->font);
+// PangoFontDescription *descr = pango_font_describe (pa->font);
+ PangoFontDescription *descr = pango_context_get_font_description (context_);
Real size = pango_font_description_get_size (descr)
/ (Real (PANGO_SCALE));