summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author B. Watson2024-02-29 21:03:31 +0100
committer Willy Sudiarto Raharjo2024-03-02 03:19:49 +0100
commitcc062fe15cbdbebd249ade90cb348fd56670c581 (patch)
tree44fc463f13662d0a88bb6b44deece3e242a4d8b0 /games
parent910682b6ab82d85e16ae8084153b82c1c29066ad (diff)
downloadslackbuilds-cc062fe15cbdbebd249ade90cb348fd56670c581.tar.gz
games/LucasChess: Fix download, doc perms, CWD write.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/LucasChess/Configuration.py4
-rw-r--r--games/LucasChess/LucasChess.SlackBuild23
-rw-r--r--games/LucasChess/LucasChess.info6
-rw-r--r--games/LucasChess/README12
4 files changed, 26 insertions, 19 deletions
diff --git a/games/LucasChess/Configuration.py b/games/LucasChess/Configuration.py
index a5f94d794c..3ba3ae4208 100644
--- a/games/LucasChess/Configuration.py
+++ b/games/LucasChess/Configuration.py
@@ -206,7 +206,7 @@ class Configuration:
self.x_maia_nodes_exponential = False
self.x_eval_limit_score = 2000 # Score in cps means 100% Win
- self.x_eval_curve_degree = 50 # Degree of curve cps and probability of win
+ self.x_eval_curve_degree = 30 # Degree of curve cps and probability of win
self.x_eval_difmate_inaccuracy = 3 # Dif mate considered an inaccuracy
self.x_eval_difmate_mistake = 12 # Dif mate considered a mistake
@@ -263,7 +263,7 @@ class Configuration:
self.x_style_icons = IconosBase.icons.NORMAL
self.style_sheet_default = None # temporary var
- self.x_mode_select_lc = True
+ self.x_mode_select_lc = False
self._dic_books = None
diff --git a/games/LucasChess/LucasChess.SlackBuild b/games/LucasChess/LucasChess.SlackBuild
index 3d07a8e63f..dfd10af1a3 100644
--- a/games/LucasChess/LucasChess.SlackBuild
+++ b/games/LucasChess/LucasChess.SlackBuild
@@ -22,14 +22,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240301 bkw: modified by SlackBuilds.org:
+# - Create temporary tarball in $TMP, not $CWD.
+# - Install docs without +x permission.
+# - Use correct sourceforge download URL (not a specific mirror).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=LucasChess
-VERSION=${VERSION:-R2.11d}
+VERSION=${VERSION:-R2.11g}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-SRCNAM=${SRCNAM:-LucasChessR2_11d_LINUX.sh}
+SRCNAM=${SRCNAM:-LucasChessR2_11g_LINUX.sh}
ARCHIVELINE=716
if [ -z "$ARCH" ]; then
@@ -56,16 +61,18 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
-# Strip off the makeself-generated header to produce a tar archive
-tail -n +$ARCHIVELINE $SRCNAM > $PRGNAM-$VERSION.tar.gz
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
mkdir -p $PKG/opt/$PRGNAM-$VERSION
cd $PKG/opt/$PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+
+# Strip off the makeself-generated header to produce a tar archive
+tail -n +$ARCHIVELINE $CWD/$SRCNAM > $PRGNAM-$VERSION.tar.gz
+
+tar xvf $PRGNAM-$VERSION.tar.gz
+
# Now we can remove the tar archive (that was generated by this script)
-rm $CWD/$PRGNAM-$VERSION.tar.gz
+rm $PRGNAM-$VERSION.tar.gz
# Fix permissions. Note: some files had 770, which would make it unusable for
# regular users. Those have been changed to 755.
@@ -103,7 +110,7 @@ sed "s/VERSION/${VERSION}/g" $CWD/LucasChessR.desktop.in \
cd $PKG/opt/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
+install -m0644 -oroot -groot \
LICENSE readme.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/games/LucasChess/LucasChess.info b/games/LucasChess/LucasChess.info
index 1f43f53d3f..28529562e7 100644
--- a/games/LucasChess/LucasChess.info
+++ b/games/LucasChess/LucasChess.info
@@ -1,10 +1,10 @@
PRGNAM="LucasChess"
-VERSION="R2.11d"
+VERSION="R2.11g"
HOMEPAGE="https://lucaschess.pythonanywhere.com/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://netactuate.dl.sourceforge.net/project/lucaschessr/Version_R2/LucasChessR2_11d_LINUX.sh"
-MD5SUM_x86_64="df2af08c41760c0131cefbaec78bcc46"
+DOWNLOAD_x86_64="https://downloads.sourceforge.net/project/lucaschessr/Version_R2/LucasChessR2_11g_LINUX.sh"
+MD5SUM_x86_64="6e73747c9fb8170066bde5535fa37c99"
REQUIRES=""
MAINTAINER="Daniel Prosser"
EMAIL="dpross1100@msn.com"
diff --git a/games/LucasChess/README b/games/LucasChess/README
index b16e94a6f1..b715c73478 100644
--- a/games/LucasChess/README
+++ b/games/LucasChess/README
@@ -1,10 +1,10 @@
Lucas Chess is a flexible and powerful chess software created by Lucas
Monge. It includes 61 pre-installed engines with a wide range of ELO
levels, including the neural network engines of the Maia project that
-emulate human play based on a certain ELO. It also includes a wide range
-of training modules to improve your chess skills. It can perform game
-analysis, generate custom trainings based on your mistakes, read PGN
-files, and study openings.
+emulate human play based on a certain ELO. It also includes a wide
+range of training modules to improve your chess skills. It can perform
+game analysis, generate custom trainings based on your mistakes, read
+PGN files, and study openings.
-This SlackBuild repackages the binary distribution provided by upstream.
-It requires about 700 MB of space when installed.
+This SlackBuild repackages the binary distribution provided by
+upstream. It requires about 700 MB of space when installed.