#!/bin/bash # Slackware build script for jag # Copyright 2009-2017 Larry Hajali # Copyright 2024 Jeremy Hansen /dev/null || true # Manually install helper files since it doesn't do it install -D -m 0644 src/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop install -D -m 0644 src/images/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png install -D -m 0644 src/jag.6 $PKG/usr/man/man6/jag.6 if [ "$EDITOR" == "yes" ]; then # They don't provide a .desktop file for jag-editor, but we can tweak the # main program's desktop to make one install -D -m 0644 src/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM-editor.desktop sed -i \ -e 's|jag|jag-editor|' \ -e 's|JAG|& Level Editor|' \ -e 's|Comment=.*|Comment=Level Editor for JAG|' \ $PKG/usr/share/applications/$PRGNAM-editor.desktop install -D -m 0644 src/editor/jag-editor.png $PKG/usr/share/pixmaps/$PRGNAM-editor.png fi find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ CHANGELOG LICENSE README.md \ $PKG/usr/doc/$PRGNAM-$VERSION 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 cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE