summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Dan-Simon Myrland <dansimon@radiotube.org>2025-06-14 08:34:52 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2025-06-14 08:46:15 +0700
commitd030fa0cfa0ce0b3dada0dc1e31c591aa1f7d5c8 (patch)
tree520f0e4a54851bd432330a4824aca85790220e92
parent4ec3b5e0e1df9c7e2d3cc22f883aeb8ee84b5dbc (diff)
downloadslackbuilds-d030fa0cfa0ce0b3dada0dc1e31c591aa1f7d5c8.tar.gz
slackbuilds-d030fa0cfa0ce0b3dada0dc1e31c591aa1f7d5c8.tar.xz
development/es-shell: Added (Extensible Shell).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/es-shell/README6
-rw-r--r--development/es-shell/es-shell.SlackBuild91
-rw-r--r--development/es-shell/es-shell.info10
-rw-r--r--development/es-shell/slack-desc19
4 files changed, 126 insertions, 0 deletions
diff --git a/development/es-shell/README b/development/es-shell/README
new file mode 100644
index 0000000000..b2d8678a1f
--- /dev/null
+++ b/development/es-shell/README
@@ -0,0 +1,6 @@
+Es is an extensible Unix shell with first class functions, lexical
+scope, exceptions and rich return values. It is highly influenced by
+Plan 9's rc shell, but also borrow ideas from scheme and tcl. It is
+a small shell that works well both for interactive use and for
+scripting, particularly since its quoting rules are much less
+baroque.
diff --git a/development/es-shell/es-shell.SlackBuild b/development/es-shell/es-shell.SlackBuild
new file mode 100644
index 0000000000..065940efee
--- /dev/null
+++ b/development/es-shell/es-shell.SlackBuild
@@ -0,0 +1,91 @@
+#!/bin/bash
+# Slackware build script for es-shell
+# Written by Dan-Simon Myrland <dansimon@radiotube.org>
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=es-shell
+VERSION=${VERSION:-0.9.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+libtoolize -qi
+autoreconf
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+strip --strip-unneeded $PKG/usr/bin/es 2> /dev/null
+chmod 0644 $PKG/usr/man/man1/es.1
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
+m $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/ERRATA doc/TODO doc/usenix-w93.ps $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/es-shell/es-shell.info b/development/es-shell/es-shell.info
new file mode 100644
index 0000000000..e35312fbd3
--- /dev/null
+++ b/development/es-shell/es-shell.info
@@ -0,0 +1,10 @@
+PRGNAM="es-shell"
+VERSION="0.9.2"
+HOMEPAGE="http://wryun.github.io/es-shell"
+DOWNLOAD="https://github.com/wryun/es-shell/archive/v0.9.2/es-shell-0.9.2.tar.gz"
+MD5SUM="1280d48d80cff0186db810aafe39abea"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Dan-Simon Myrland"
+EMAIL="dansimon@radiotube.org"
diff --git a/development/es-shell/slack-desc b/development/es-shell/slack-desc
new file mode 100644
index 0000000000..49548fa86a
--- /dev/null
+++ b/development/es-shell/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+es-shell: es-shell (extensible shell)
+es-shell:
+es-shell: Es is an extensible Unix shell with first class functions, lexical
+es-shell: scope, exceptions and rich return values. It is highly influenced by
+es-shell: Plan 9's rc shell, but also borrow ideas from scheme and tcl. It is
+es-shell: a small shell that works well both for interactive use and for
+es-shell: scripting, particularly since its quoting rules are much less
+es-shell: baroque.
+es-shell:
+es-shell:
+es-shell: