summaryrefslogtreecommitdiffstats
path: root/audio/freepats/freepats.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/freepats/freepats.SlackBuild')
-rw-r--r--audio/freepats/freepats.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/audio/freepats/freepats.SlackBuild b/audio/freepats/freepats.SlackBuild
index 7f1a385392..0046b7135f 100644
--- a/audio/freepats/freepats.SlackBuild
+++ b/audio/freepats/freepats.SlackBuild
@@ -22,25 +22,30 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230111 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - Create config file symlink at /etc/timidity.cfg, because Slackware's
+# SDL-1.2 looks there for it. Doing this makes the music work in odamex,
+# and various other games. Also add a douninst.sh that removes the
+# symlinks *if* they point to crude.cfg, to make it possible to switch
+# between freepats and eawpats without having to manually update the
+# symlinks.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=freepats
VERSION=${VERSION:-20060219}
ARCH=noarch
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM-$VERSION
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="COPYING README"
@@ -73,6 +78,7 @@ 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/douninst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE