mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 04:37:20 +08:00
lilypond fixed: rebuild against guile1.8 (legacy)
This commit is contained in:
parent
213df475a1
commit
2111e64002
@ -3,13 +3,13 @@
|
|||||||
pkgname=lilypond
|
pkgname=lilypond
|
||||||
pkgver=2.18.2
|
pkgver=2.18.2
|
||||||
_pkgver=2.18
|
_pkgver=2.18
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="A music engraving program, devoted to producing the highest-quality sheet music possible."
|
pkgdesc="A music engraving program, devoted to producing the highest-quality sheet music possible."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://lilypond.org/"
|
url="http://lilypond.org/"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('fontconfig' 'freetype2' 'ghostscript'
|
depends=('fontconfig' 'freetype2' 'ghostscript'
|
||||||
'guile' 'pango' 'python')
|
'guile1.8' 'pango' 'python')
|
||||||
makedepends=('bison' 'flex' 'fontforge' 'gettext' 'gsfonts'
|
makedepends=('bison' 'flex' 'fontforge' 'gettext' 'gsfonts'
|
||||||
'perl' 'texinfo' 't1utils' 'texlive-core' 'texlive-langcyrillic' 'netpbm' 'texi2html' 'dblatex' 'zip' 'imagemagick')
|
'perl' 'texinfo' 't1utils' 'texlive-core' 'texlive-langcyrillic' 'netpbm' 'texi2html' 'dblatex' 'zip' 'imagemagick')
|
||||||
optdepends=('netpbm: building HTML documentation'
|
optdepends=('netpbm: building HTML documentation'
|
||||||
@ -22,8 +22,8 @@ install=$pkgname.install
|
|||||||
source=("http://download.linuxaudio.org/${pkgname}/sources/v${_pkgver}/${pkgname}-${pkgver}.tar.gz")
|
source=("http://download.linuxaudio.org/${pkgname}/sources/v${_pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||||
md5sums=('3c4bcbb708d12644668b32bfe82ebf25')
|
md5sums=('3c4bcbb708d12644668b32bfe82ebf25')
|
||||||
|
|
||||||
build() {
|
prepare() {
|
||||||
cd "$srcdir/lilypond-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
# python2 fix
|
# python2 fix
|
||||||
for file in $(find . -name '*.py' -print); do
|
for file in $(find . -name '*.py' -print); do
|
||||||
@ -31,11 +31,23 @@ build() {
|
|||||||
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
|
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sed -i 's|GUILE_CFLAGS=.*|GUILE_CFLAGS="`pkg-config --cflags guile-1.8`"|' configure
|
||||||
|
sed -i 's|GUILE_LDFLAGS=.*|GUILE_LDFLAGS="`pkg-config --libs guile-1.8`"|' configure
|
||||||
|
|
||||||
|
rm -rf lily/out/ python/out/
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
export PYTHON=/usr/bin/python2
|
||||||
|
export GUILE=/usr/bin/guile1.8
|
||||||
|
export GUILE_CONFIG=/usr/bin/guile-config1.8
|
||||||
|
export LDFLAGS="$LDFLAGS -lpthread"
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make all
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/lilypond-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
make DESTDIR="$pkgdir/" install
|
make DESTDIR="$pkgdir" vimdir="/usr/share/vim/vimfiles" install
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user