graphics/lilypond: Add doinst/douninst for /usr/info/dir.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-06-30 20:24:25 -04:00 committed by Willy Sudiarto Raharjo
parent 14166e988b
commit 65d03cc265
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,6 @@
if [ -x /usr/bin/install-info -a -d usr/info ]; then
( cd usr/info
rm -f dir
for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
)
fi

View File

@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20230630 bkw: Modified by SlackBuilds.org, BUILD=2:
# - add doinst.sh to handle /usr/info/dir.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lilypond
VERSION=${VERSION:-2.24.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -106,6 +109,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/doinst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE