diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-05-16 20:20:00 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:57 +0700 |
commit | d4cab9544581201249a4d9991fb2d8eda1863434 (patch) | |
tree | ecdb078f2c4e984f9d4083629c1fffdd80c0d9d7 /games | |
parent | cf4ad915ea872f485909e38dfe0795c9e30210f1 (diff) |
games/etlegacy: ARCH->i586, add SRCARCH.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/etlegacy/doinst.sh | 7 | ||||
-rw-r--r-- | games/etlegacy/etlegacy.SlackBuild | 18 |
2 files changed, 20 insertions, 5 deletions
diff --git a/games/etlegacy/doinst.sh b/games/etlegacy/doinst.sh index 5fb28930db0b..4a25de5e6fbd 100644 --- a/games/etlegacy/doinst.sh +++ b/games/etlegacy/doinst.sh @@ -1,3 +1,10 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/games/etlegacy/etlegacy.SlackBuild b/games/etlegacy/etlegacy.SlackBuild index 314d0e85c887..9c74ae4ca048 100644 --- a/games/etlegacy/etlegacy.SlackBuild +++ b/games/etlegacy/etlegacy.SlackBuild @@ -31,12 +31,20 @@ PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i*86) ARCH=i386 ;; - x86_64) ARCH=x86_64 ;; - *) echo "$ARCH architecture not supported. This script is available only for i386 and x86_64." ;; + i?86) ARCH=i586 ;; + *) ARCH=$( uname -m ) ;; esac fi +if [ "$ARCH" = "x86_64" ]; then + SRCARCH=$ARCH +elif [[ $ARCH =~ i?86 ]]; then + SRCARCH=i386 +else + echo "$ARCH architecture is unsupported." >/dev/stderr + exit 1 +fi + if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -51,8 +59,8 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG/usr/share $OUTPUT cd $PKG/usr/share -tar xvf $CWD/$PRGNAM-v$VERSION-$ARCH.tar.?z -mv $PRGNAM-v$VERSION-$ARCH $PRGNAM +tar xvf $CWD/$PRGNAM-v$VERSION-$SRCARCH.tar.?z +mv $PRGNAM-v$VERSION-$SRCARCH $PRGNAM cd $PRGNAM chown -R root:root . find -L . \ |