]> Cypherpunks repositories - bass.git/commitdiff
Jim Tcl 0.81
authorSergey Matveev <stargrave@stargrave.org>
Mon, 22 Dec 2025 09:28:24 +0000 (12:28 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 22 Dec 2025 09:28:24 +0000 (12:28 +0300)
build/distfiles/.gitignore
build/distfiles/jimtcl-0.81.tar.zst.do [new file with mode: 0644]
build/skel/devel/jimtcl-0.81.do [new file with mode: 0644]

index 684ed37a8e57bca2a125c74a2c44d9606a225b4bce071760d054cc64def5b8a2..f434359cd2fc4c1136fdf7f25545a411aebb140cb4d73791dc917e5437d666b0 100644 (file)
@@ -99,6 +99,7 @@
 /iniparser-v4.2.2.tar.zst
 /iniparser.git/
 /irssi-1.4.5.tar.xz
+/jimtcl-0.81.tar.zst
 /jimtcl-0.83-94-g912c167.tar.zst
 /jimtcl.git/
 /json-glib-1.10.6.tar.xz
diff --git a/build/distfiles/jimtcl-0.81.tar.zst.do b/build/distfiles/jimtcl-0.81.tar.zst.do
new file mode 100644 (file)
index 0000000..d1fe899
--- /dev/null
@@ -0,0 +1,7 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+[ -d jimtcl.git ] || git clone --depth 1 --bare https://github.com/msteveb/jimtcl.git >&2
+cd jimtcl.git
+commit=2553e31de2a0ab6ca5ae1de9f3bff3858e37701a
+git fetch origin $commit >&2
+git archive --prefix=${1%.tar.zst}/ $commit | $COMPRESSOR
diff --git a/build/skel/devel/jimtcl-0.81.do b/build/skel/devel/jimtcl-0.81.do
new file mode 100644 (file)
index 0000000..5879ab7
--- /dev/null
@@ -0,0 +1,21 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="rc-paths stow archivers/zstd"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.zst
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.zst
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME
+./configure --prefix="$SKELBINS"/$ARCH/$NAME-$hsh \
+    --disable-lineedit --full >&2
+make -j$MAKE_JOBS >&2
+make install >&2
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh