aboutsummaryrefslogtreecommitdiff
path: root/games/LucasChess/LucasChess.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-02-29 15:03:31 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-03-02 09:19:49 +0700
commitcc062fe15cbdbebd249ade90cb348fd56670c581 (patch)
tree44fc463f13662d0a88bb6b44deece3e242a4d8b0 /games/LucasChess/LucasChess.SlackBuild
parent910682b6ab82d85e16ae8084153b82c1c29066ad (diff)
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/LucasChess/LucasChess.SlackBuild')
-rw-r--r--games/LucasChess/LucasChess.SlackBuild23
1 files changed, 15 insertions, 8 deletions
diff --git a/games/LucasChess/LucasChess.SlackBuild b/games/LucasChess/LucasChess.SlackBuild
index 3d07a8e63f9eb..dfd10af1a3af3 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