summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Dan-Simon Myrland <dansimon@radiotube.org>2025-06-12 09:10:55 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2025-06-12 09:30:29 +0700
commit84c7d44cc2a1fbdf0b87a82cdf2ace45755ebfa4 (patch)
tree61c5cab70ed08fc8e68d766b16db2510dd34edc4
parent26a00552f451f86a15cc26774fb40ef2869a799e (diff)
downloadslackbuilds-84c7d44cc2a1fbdf0b87a82cdf2ace45755ebfa4.tar.gz
slackbuilds-84c7d44cc2a1fbdf0b87a82cdf2ace45755ebfa4.tar.xz
development/se: Added (Screen Editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/se/README4
-rw-r--r--development/se/se.SlackBuild86
-rw-r--r--development/se/se.info10
-rw-r--r--development/se/slack-desc19
4 files changed, 119 insertions, 0 deletions
diff --git a/development/se/README b/development/se/README
new file mode 100644
index 0000000000..75588ee435
--- /dev/null
+++ b/development/se/README
@@ -0,0 +1,4 @@
+The Screen Editor (se) is a modified version of ed(1) with a screen.
+The idea is similar to vi(1), but the editor is simpler and closer to
+the original ed. The editor has a long history, it was essentially
+feature complete in 1985, and the code was later modernized in 2013.
diff --git a/development/se/se.SlackBuild b/development/se/se.SlackBuild
new file mode 100644
index 0000000000..46c120870c
--- /dev/null
+++ b/development/se/se.SlackBuild
@@ -0,0 +1,86 @@
+#!/bin/bash
+# Slackware build script for se
+# Written by Dan-Simon Myrland <dansimon@radiotube.org>
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=se
+VERSION=${VERSION:-3.0.1}
+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 {} \;
+
+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-strip DESTDIR=$PKG
+
+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 COPYING ChangeLog NEWS README TODO $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/se/se.info b/development/se/se.info
new file mode 100644
index 0000000000..8a428c5451
--- /dev/null
+++ b/development/se/se.info
@@ -0,0 +1,10 @@
+PRGNAM="se"
+VERSION="3.0.1"
+HOMEPAGE="https://www.se-editor.org"
+DOWNLOAD="https://www.se-editor.org/dist/se-3.0.1.tar.gz"
+MD5SUM="1591fbb514729f846a4f12bdc45ee600"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Dan-Simon Myrland"
+EMAIL="dansimon@radiotube.org"
diff --git a/development/se/slack-desc b/development/se/slack-desc
new file mode 100644
index 0000000000..8cd54ad548
--- /dev/null
+++ b/development/se/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------------------------------------------------------|
+se: se (text editor)
+se:
+se: The Screen Editor (se) is a modified version of ed(1) with a screen.
+se: The idea is similar to vi(1), but the editor is simpler and closer to
+se: the original ed. The editor has a long history, it was essentially
+se: feature complete in 1985, and the code was later modernized in 2013.
+se:
+se:
+se:
+se:
+se: