|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2009 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2009,2010 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# ispermitted provided that the following conditions are met: |
|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-lilypond} |
|
|
|
|
VERSION=${VERSION:-2.12.2} |
|
|
|
|
VERSION=${VERSION:-2.12.3} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
ARCHDOC=${ARCHDOC:-$NAMESRC-$VERSION-1.documentation.tar.bz2} |
|
|
|
|
WGET=${WGET:-http://lilypond.org/download/sources/v2.12/$ARCHIVE} |
|
|
|
@ -36,7 +36,7 @@ WGETDOC=${WGETDOC:-http://lilypond.org/download/binaries/documentation/$ARCHDOC}
|
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-lilypond} |
|
|
|
|
BUILD=${BUILD:-2GGD} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
ARCH=${ARCH:-i486} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
|
EXT=${EXT:-txz} |
|
|
|
@ -113,20 +113,19 @@ find $PKG/usr/info -type f -exec gzip -9 '{}' \;
|
|
|
|
|
|
|
|
|
|
# Install the project docs |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 \ |
|
|
|
|
AUTHORS.txt COPYING DEDICATION HACKING INSTALL.txt \ |
|
|
|
|
NEWS.txt README.txt ROADMAP THANKS VERSION \ |
|
|
|
|
$PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 AUTHORS.txt COPYING DEDICATION HACKING INSTALL.txt \ |
|
|
|
|
NEWS.txt README.txt ROADMAP THANKS VERSION $PKG/usr/doc/$NAME |
|
|
|
|
|
|
|
|
|
# Building Lilypond documentation from source takes a *long* time and |
|
|
|
|
# requires more memory than my virtual machine can provide. So, install |
|
|
|
|
# the pre-built documentation. |
|
|
|
|
( |
|
|
|
|
cd $PKG/usr/doc/$NAME |
|
|
|
|
tar xf $CWD/$ARCHDOC |
|
|
|
|
cd share/doc/lilypond |
|
|
|
|
rm -rf html/input |
|
|
|
|
# Keep only English docs |
|
|
|
|
rm -rf Documentation/ja |
|
|
|
|
find . \( -name '*.fr.*' -o -name '*.de.*' -o -name '*.es.*' \) -delete |
|
|
|
|
find . \( -name '*.fr.*' -o -name '*.de.*' -o -name '*.es.*' -o -name '*.ja.*' \) -delete |
|
|
|
|
cp -r html $PKG/usr/doc/$NAME/html |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|