|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
# Slackware build script for tome-ah |
|
|
|
|
|
|
|
# Copyright 2023, SlackBuilds.org Project, David Melik, Spokane, WA, USA |
|
|
|
# Copyright 2024, SlackBuilds.org Project, David Melik, Spokane, WA, USA |
|
|
|
# All rights reserved. |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modification, is |
|
|
|
@ -25,7 +25,7 @@ |
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=tome-ah |
|
|
|
VERSION=${VERSION:-20230210_2209ab8} |
|
|
|
VERSION=${VERSION:-20240912_203c8c1} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
@ -42,9 +42,6 @@ if [ -z "$ARCH" ]; then |
|
|
|
esac |
|
|
|
fi |
|
|
|
|
|
|
|
# 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 |
|
|
|
@ -99,13 +96,11 @@ cd - |
|
|
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip \ |
|
|
|
--strip-unneeded 2> /dev/null |
|
|
|
|
|
|
|
install -m 0755 $CWD/tome-gcu.sh $PKG/usr/share/games/$PRGNAM/bin/tome-gcu.sh |
|
|
|
install -m 0755 $CWD/tome-gtk2.sh $PKG/usr/share/games/$PRGNAM/bin/tome-gtk2.sh |
|
|
|
install -m 0755 $CWD/tome-x11.sh $PKG/usr/share/games/$PRGNAM/bin/tome-x11.sh |
|
|
|
install -m 0755 $CWD/tome.sh $PKG/usr/share/games/$PRGNAM/bin/tome.sh |
|
|
|
mkdir -p $PKG/usr/games |
|
|
|
ln -fs /usr/share/games/$PRGNAM/bin/tome-gcu.sh $PKG/usr/games/tome-gcu-ah |
|
|
|
ln -fs /usr/share/games/$PRGNAM/bin/tome-gtk2.sh $PKG/usr/games/tome-gtk2-ah |
|
|
|
ln -fs /usr/share/games/$PRGNAM/bin/tome-x11.sh $PKG/usr/games/tome-x11-ah |
|
|
|
ln -fs /usr/share/games/$PRGNAM/bin/tome.sh $PKG/usr/games/tome-ah-gcu |
|
|
|
ln -fs /usr/share/games/$PRGNAM/bin/tome.sh $PKG/usr/games/tome-ah-gtk2 |
|
|
|
ln -fs /usr/share/games/$PRGNAM/bin/tome.sh $PKG/usr/games/tome-ah-x11 |
|
|
|
|
|
|
|
find $PKG -name "delete.me" | xargs rm -f |
|
|
|
find $PKG -name ".cvsignore" | xargs rm -f |
|
|
|
|