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>
This commit is contained in:
parent
910682b6ab
commit
cc062fe15c
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue