void-packages/srcpkgs/lilypond/template
2020-12-05 16:44:29 -03:00

41 lines
1.2 KiB
Bash

# Template file for 'lilypond'
pkgname=lilypond
version=2.21.81
revision=1
build_wrksrc="build"
build_style="gnu-configure"
configure_script="../configure"
configure_args="--disable-documentation ac_cv_func_isinf=yes
--with-texgyre-dir=/usr/share/texmf-dist/fonts/opentype/public/tex-gyre"
hostmakedepends="autogen automake bison flex fontforge gettext guile1.8 perl
pkg-config python3 t1utils tar texinfo texlive"
makedepends="gc-devel guile1.8-devel libltdl-devel pango-devel"
depends="ghostscript python3"
short_desc="Music engraving program"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-3.0-or-later, GFDL-1.3-or-later"
homepage="https://lilypond.org/"
distfiles="https://lilypond.org/downloads/sources/v2.21/lilypond-${version}.tar.gz"
checksum=eb7af474754a696b83379ffcf95ffdf3599320d160ba517dca404883380ab512
python_version=3
if [ -n "${CROSS_BUILD}" ]; then
# needs guile-config-1.8
hostmakedepends+=" guile1.8-devel"
makedepends+=" libfl-devel"
fi
post_extract() {
if [ ! -d $wrksrc/$build_wrksrc ]; then
mkdir $wrksrc/$build_wrksrc
fi
}
pre_configure() {
cd .. && ./autogen.sh --noconfigure
}
post_install() {
vmkdir usr/share/vim
mv $DESTDIR/usr/share/lilypond/${version}/vim $DESTDIR/usr/share/vim/vim82
}