aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Leal <antonio.leal@yahoo.com>2024-10-13 21:56:17 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-17 08:02:49 +0700
commit406cd763fa6a4e54e9a7bb6c8e1838a13cd7c8d0 (patch)
tree697eac3391e7083cd121bb81c22b3e7b517ec3cf
parent925077e484745e1b3edaa1f6ebb7714fd208364e (diff)
development/kForth-64: Updated for version 0.5.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/kForth-64/kForth-64.SlackBuild4
-rw-r--r--development/kForth-64/kForth-64.desktop2
-rw-r--r--development/kForth-64/kForth-64.info10
-rwxr-xr-xdevelopment/kForth-64/updater/build.sh55
-rwxr-xr-xdevelopment/kForth-64/updater/delete-branches.sh17
-rwxr-xr-xdevelopment/kForth-64/updater/download-source-tarballs.sh46
-rwxr-xr-xdevelopment/kForth-64/updater/meld.sh36
-rwxr-xr-xdevelopment/kForth-64/updater/pull-request.sh68
-rwxr-xr-xdevelopment/kForth-64/updater/tar.sh21
9 files changed, 251 insertions, 8 deletions
diff --git a/development/kForth-64/kForth-64.SlackBuild b/development/kForth-64/kForth-64.SlackBuild
index 493078009a23a..2cbddcb173fd1 100644
--- a/development/kForth-64/kForth-64.SlackBuild
+++ b/development/kForth-64/kForth-64.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for kForth-64
-# Copyright 2023 Antonio Leal, Porto Salvo, Oeiras, Portugal
+# Copyright 2023-2024 Antonio Leal, Porto Salvo, Oeiras, Portugal
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=kForth-64
-VERSION=${VERSION:-0.4.3}
+VERSION=${VERSION:-0.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
diff --git a/development/kForth-64/kForth-64.desktop b/development/kForth-64/kForth-64.desktop
index ef2fe034bc7e5..307b84c048cbf 100644
--- a/development/kForth-64/kForth-64.desktop
+++ b/development/kForth-64/kForth-64.desktop
@@ -5,5 +5,5 @@ Exec=/usr/bin/kforth64
Icon=/usr/share/pixmaps/kforth.xpm
Terminal=true
Type=Application
-Categories=System;Development;
+Categories=Development;
diff --git a/development/kForth-64/kForth-64.info b/development/kForth-64/kForth-64.info
index fb8d73297d0c8..7f8bbf947fb33 100644
--- a/development/kForth-64/kForth-64.info
+++ b/development/kForth-64/kForth-64.info
@@ -1,10 +1,10 @@
PRGNAM="kForth-64"
-VERSION="0.4.3"
+VERSION="0.5.0"
HOMEPAGE="https://github.com/mynenik/kForth-64"
-DOWNLOAD="UNSUPPORTED"
-MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/mynenik/kForth-64/archive/refs/tags/v0.4.3/kForth-64-0.4.3.tar.gz"
-MD5SUM_x86_64="44bc386a5ac16dacac44daa04aeba8af"
+DOWNLOAD="https://github.com/mynenik/kForth-64/archive/refs/tags/v0.5.0/kForth-64-0.5.0.tar.gz"
+MD5SUM="6f452205dbc4b8c457e21702ee77324f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
REQUIRES="patchutils"
MAINTAINER="Antonio Leal"
EMAIL="antonio.leal@yahoo.com"
diff --git a/development/kForth-64/updater/build.sh b/development/kForth-64/updater/build.sh
new file mode 100755
index 0000000000000..e59e7e45700b4
--- /dev/null
+++ b/development/kForth-64/updater/build.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+cd $SCRIPT_DIR
+
+set -e
+clear
+cd ..
+PKGNAME=${PWD##*/}
+echo "Building Package $PKGNAME:"
+echo
+
+echo "--------------------------------------------------------------------------------"
+echo
+read -p "Run sbolint? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ sbolint .
+fi
+
+echo "--------------------------------------------------------------------------------"
+echo
+read -p "Run SlackBuild for Package $PKGNAME? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ sudo sh ./$PKGNAME.SlackBuild
+fi
+
+echo "--------------------------------------------------------------------------------"
+echo
+VERSION=`cat *.info | grep VERSION | cut -d"\"" -f2`
+echo "Tarballs available at /tmp:"
+ls /tmp/$PKGNAME-$VERSION* -lasth
+TARBALL=`ls /tmp/$PKGNAME-$VERSION* -1t | head -n1`
+
+
+echo "--------------------------------------------------------------------------------"
+echo
+read -p "Run sbopkglint $TARBALL ? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ sbopkglint $TARBALL
+fi
+
+echo "--------------------------------------------------------------------------------"
+echo
+read -p "Install $TARBALL ? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ sudo /sbin/upgradepkg --install-new --reinstall $TARBALL
+fi
+
+
+echo "--------------------------------------------------------------------------------"
+echo
+read -p "Create SlackBuild package by running tar.sh? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ ./updater/tar.sh
+fi
diff --git a/development/kForth-64/updater/delete-branches.sh b/development/kForth-64/updater/delete-branches.sh
new file mode 100755
index 0000000000000..ab78d273d1b13
--- /dev/null
+++ b/development/kForth-64/updater/delete-branches.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+clear
+
+cd ~/slackware-builds/antonioleal/slackbuilds
+git checkout master
+echo
+for b in `git branch | grep -v "master"`
+do
+ echo "deleting $b"
+ git branch -D $b
+ git push origin -d $b
+ git fetch --prune
+ echo
+done
+
diff --git a/development/kForth-64/updater/download-source-tarballs.sh b/development/kForth-64/updater/download-source-tarballs.sh
new file mode 100755
index 0000000000000..657e9d3fe70d8
--- /dev/null
+++ b/development/kForth-64/updater/download-source-tarballs.sh
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+cd $SCRIPT_DIR
+
+set -e
+clear
+cd ..
+PKGNAME=${PWD##*/}
+source *.info
+
+echo "--------------------------------------------------------------------------------"
+cat *.info
+echo
+
+echo "--------------------------------------------------------------------------------"
+echo
+read -p "WGET DOWNLOAD_x86_64? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ for s in $DOWNLOAD_x86_64
+ do
+ echo "Downloading: $s"
+ wget -nc $s
+ TARBALL=`echo $s | rev | cut -d"/" -f1 | rev`
+ md5sum $TARBALL
+ echo
+ done
+fi
+echo
+
+echo "--------------------------------------------------------------------------------"
+echo
+read -p "WGET DOWNLOAD? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ for s in $DOWNLOAD
+ do
+ echo "Downloading: $s"
+ wget -nc $s
+ TARBALL=`echo $s | rev | cut -d"/" -f1 | rev`
+ md5sum $TARBALL
+ echo
+ done
+fi
+
+echo
+echo "Done."
diff --git a/development/kForth-64/updater/meld.sh b/development/kForth-64/updater/meld.sh
new file mode 100755
index 0000000000000..2e96dae6375d9
--- /dev/null
+++ b/development/kForth-64/updater/meld.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# Slackware meld comparer
+
+# Copyright 2023 Antonio Leal, Porto Salvo, Oeiras, Portugal
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+cd $SCRIPT_DIR
+
+cd ..
+PRGNAM=${PWD##*/}
+echo "Program: " $PRGNAM
+cd ..
+CATEGORY=${PWD##*/}
+echo "Category: " $CATEGORY
+
+meld ~/slackware-builds/antonioleal/myslackbuilds/${CATEGORY}/${PRGNAM}/ ~/slackware-builds/antonioleal/slackbuilds/${CATEGORY}/${PRGNAM}/
+
diff --git a/development/kForth-64/updater/pull-request.sh b/development/kForth-64/updater/pull-request.sh
new file mode 100755
index 0000000000000..695e044a20427
--- /dev/null
+++ b/development/kForth-64/updater/pull-request.sh
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+cd $SCRIPT_DIR
+
+set -e
+clear
+
+# make sure the SlackaBuild file are neatly packed
+./tar.sh
+
+cd ..
+PKGNAME=${PWD##*/}
+echo "Package: " $PKGNAME
+cd ..
+CATEGORY=${PWD##*/}
+echo "Category: " $CATEGORY
+
+read -p "Commit message: " MSG
+echo
+echo
+
+cd ~/slackware-builds/antonioleal/slackbuilds
+git checkout -B $PKGNAME
+cd ~/slackware-builds/antonioleal/slackbuilds/$CATEGORY/
+echo
+echo
+
+tar xvfz ~/slackware-builds/antonioleal/myslackbuilds/$CATEGORY/$PKGNAME/updater/slackbuild/$PKGNAME.tar.gz
+echo
+echo
+pwd
+git status
+
+# git add all
+echo
+echo
+echo Adding all files: git add --all
+read -p "Issue command above? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ git add --all
+fi
+
+# git commit -a -m "$CATEGORY/$PKGNAME: $MSG"
+echo
+echo
+echo Commit all files: git commit -a -m "\"$CATEGORY/$PKGNAME: $MSG\""
+read -p "Issue command above? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ git commit -a -m "$CATEGORY/$PKGNAME: $MSG"
+fi
+
+# git push -f origin $PKGNAME
+echo
+echo
+echo Pushing to upstream master with: git push -f origin $PKGNAME
+read -p "Issue command above? (y/n) " op
+if [ "$op" = "y" ] || [ "$op" = "Y" ]; then
+ git push -f origin $PKGNAME
+fi
+
+# return to master branch
+echo
+echo
+echo Returning to master branch with: git checkout master
+git checkout master
+echo
+echo Done.
diff --git a/development/kForth-64/updater/tar.sh b/development/kForth-64/updater/tar.sh
new file mode 100755
index 0000000000000..701c3eff366d9
--- /dev/null
+++ b/development/kForth-64/updater/tar.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+cd $SCRIPT_DIR/..
+
+sboname=${PWD##*/}
+echo $sboname
+cd updater/slackbuild
+
+tar -z -c -f $sboname.tar.gz -v \
+ --exclude='updater' \
+ --exclude='*.tar.gz' \
+ --exclude='*.tar' \
+ --exclude='*.tgz' \
+ --exclude='*.txz' \
+ --exclude='*.zip' \
+ --exclude='*.md' \
+ --exclude='*.sf3' \
+ --exclude='*.deb' \
+ --exclude='*.rpm' \
+ ../../../$sboname