misc/OSCAR: Updated for version 1.5.3

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Zhu Qun-Ying 2024-07-23 08:17:04 -07:00 committed by Willy Sudiarto Raharjo
parent 0ef6b248d8
commit 467233c91d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 17 additions and 9 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for OSCAR
# Copyright 2019-2022 Zhu, Qun-Ying
# Copyright 2019-2024 Zhu, Qun-Ying
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=OSCAR
VERSION=${VERSION:-1.5.1}
VERSION=${VERSION:-1.5.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -38,9 +38,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
@ -62,7 +59,7 @@ fi
set -e
PRGSRC_NAME=$PRGNAM-code-v$VERSION
PRGSRC_NAME=$PRGNAM-code-$VERSION
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@ -93,6 +90,7 @@ cp -a build/oscar/Html $PKG/usr/share/$PRGNAM
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

View file

@ -1,8 +1,8 @@
PRGNAM="OSCAR"
VERSION="1.5.1"
VERSION="1.5.3"
HOMEPAGE="https://www.sleepfiles.com/OSCAR/"
DOWNLOAD="https://gitlab.com/pholy/OSCAR-code/-/archive/v1.5.1/OSCAR-code-v1.5.1.tar.bz2"
MD5SUM="f18116b475961618464c05079f333ba6"
DOWNLOAD="https://gitlab.com/pholy/OSCAR-code/-/archive/1.5.3/OSCAR-code-1.5.3.tar.bz2"
MD5SUM="d35888c44c9ec170657943c0d31709d3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

10
misc/OSCAR/doinst.sh Normal file
View file

@ -0,0 +1,10 @@
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
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi