]> Cypherpunks repositories - bass.git/commitdiff
Add Jim Tcl
authorSergey Matveev <stargrave@stargrave.org>
Fri, 21 Nov 2025 07:57:51 +0000 (10:57 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 21 Nov 2025 07:57:51 +0000 (10:57 +0300)
build/distfiles/.gitignore
build/distfiles/jimtcl-0.83-94-g912c167.tar.zst.do [new file with mode: 0644]
build/skel/devel/jimtcl-0.83-94-g912c167.do [new file with mode: 0644]

index 51254cf2d9b1c1a3e88458373a1c462b76857aa54261baec077ae49504aa65bb..6edd4755434677d0a2cb6c287298ac6fc04ff71dd43462c4d8e8eb1be7c95539 100644 (file)
 /iniparser-v4.2.2.tar.zst
 /iniparser.git/
 /irssi-1.4.5.tar.xz
+/jimtcl-0.83-94-g912c167.tar.zst
+/jimtcl.git/
 /json-glib-1.10.6.tar.xz
 /lame-3.100.tar.gz
 /lcms2-2.16.tar.gz
diff --git a/build/distfiles/jimtcl-0.83-94-g912c167.tar.zst.do b/build/distfiles/jimtcl-0.83-94-g912c167.tar.zst.do
new file mode 100644 (file)
index 0000000..729b988
--- /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=912c167ed6dc5c2cb30bd57e20f10954503438e2
+git fetch origin $commit >&2
+git archive --prefix=${1%.tar.zst}/ $commit | $COMPRESSOR
diff --git a/build/skel/devel/jimtcl-0.83-94-g912c167.do b/build/skel/devel/jimtcl-0.83-94-g912c167.do
new file mode 100644 (file)
index 0000000..529666b
--- /dev/null
@@ -0,0 +1,20 @@
+[ -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 >&2
+make -j$MAKE_JOBS >&2
+make install >&2
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh