# Contributor: Joshua Murphy # Maintainer: Joshua Murphy pkgname=lilypond pkgver=2.24.1 pkgrel=0 pkgdesc="Music engraving program" url="https://lilypond.org" # ppc64le, s390x, riscv64: texlive # x86: hangs on build forever arch="all !ppc64le !s390x !riscv64 !x86" license="GPL-3.0-or-later" depends=" ghostscript guile python3 " makedepends=" bison flex-dev fontconfig-dev fontforge gc-dev glib-dev guile-dev imagemagick pango-dev perl py3-setuptools rsync t1utils texinfo texlive-dev texmf-dist-langcyrillic " subpackages=" $pkgname-doc $pkgname-emacs::noarch $pkgname-lang $pkgname-pyc $pkgname-vim::noarch " source="$pkgname-$pkgver.tar.gz::https://lilypond.org/download/sources/v2.24/lilypond-$pkgver.tar.gz" # https://gitlab.com/lilypond/lilypond/-/issues/1557 # Tests fail due to texi2html # Strip manually due to guile files options="!check !strip" build() { ./configure \ --prefix=/usr \ --host=$CHOST \ --build=$CBUILD \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-texi2html \ GUILE_FLAVOR=guile-3.0 timeout 1500 \ make vimdir="/usr/share/vim/vimfiles" all bytecode } check() { make test-baseline make check } package() { make DESTDIR="$pkgdir" vimdir="/usr/share/vim/vimfiles" install install-bytecode strip "$pkgdir"/usr/bin/lilypond } emacs() { pkgdesc="$pkgdesc (emacs plugin)" install_if="$pkgname=$pkgver-r$pkgrel emacs" amove usr/share/emacs } pyc() { default_pyc amove usr/share/lilypond/*/python/__pycache__ } vim() { pkgdesc="Vim syntax for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel vim" amove usr/share/vim } sha512sums=" 121e1b4b70bc84948a6b51d2e7fb785d8abcf2585b9c463929021ba86a69ad34d24f14a5a7997a7428f02c0e9f102cfd348870cd67d9feb1f3b3040a96d25db0 lilypond-2.24.1.tar.gz "