From 467233c91dc69e74e11fcbe53e1da8e191b25884 Mon Sep 17 00:00:00 2001 From: Zhu Qun-Ying Date: Tue, 23 Jul 2024 08:17:04 -0700 Subject: [PATCH] misc/OSCAR: Updated for version 1.5.3 Signed-off-by: Willy Sudiarto Raharjo --- misc/OSCAR/OSCAR.SlackBuild | 10 ++++------ misc/OSCAR/OSCAR.info | 6 +++--- misc/OSCAR/doinst.sh | 10 ++++++++++ 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 misc/OSCAR/doinst.sh diff --git a/misc/OSCAR/OSCAR.SlackBuild b/misc/OSCAR/OSCAR.SlackBuild index b446062187..846cd9fa8a 100644 --- a/misc/OSCAR/OSCAR.SlackBuild +++ b/misc/OSCAR/OSCAR.SlackBuild @@ -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 diff --git a/misc/OSCAR/OSCAR.info b/misc/OSCAR/OSCAR.info index d550c49135..d2a30ffb0c 100644 --- a/misc/OSCAR/OSCAR.info +++ b/misc/OSCAR/OSCAR.info @@ -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="" diff --git a/misc/OSCAR/doinst.sh b/misc/OSCAR/doinst.sh new file mode 100644 index 0000000000..98a8e99da0 --- /dev/null +++ b/misc/OSCAR/doinst.sh @@ -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 +