diff options
author | 2025-06-14 08:38:07 +0700 | |
---|---|---|
committer | 2025-06-14 08:52:05 +0700 | |
commit | c5625c646d8802f6cf8c2b4f67658113e57c8a14 (patch) | |
tree | ee7048934f547f5914b646b067e7ac1f1bc68ecd | |
parent | d030fa0cfa0ce0b3dada0dc1e31c591aa1f7d5c8 (diff) | |
download | slackbuilds-c5625c646d8802f6cf8c2b4f67658113e57c8a14.tar.gz slackbuilds-c5625c646d8802f6cf8c2b4f67658113e57c8a14.tar.xz |
development/neatvi: Added (Small Vi Implementation).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/neatvi/README | 8 | ||||
-rw-r--r-- | development/neatvi/neatvi.SlackBuild | 57 | ||||
-rw-r--r-- | development/neatvi/neatvi.info | 10 | ||||
-rw-r--r-- | development/neatvi/slack-desc | 19 |
4 files changed, 94 insertions, 0 deletions
diff --git a/development/neatvi/README b/development/neatvi/README new file mode 100644 index 0000000000..bb048634de --- /dev/null +++ b/development/neatvi/README @@ -0,0 +1,8 @@ +Neatvi is a simple and clean vi(1) implementation, despite its small +size it supports UTF-8, syntax highlighting, multiple windows, +keymaps and right-to-left languages, such as Arabic/Persian. A man +page is not included, but the editor follow classic vi(1) closely, +non-standard extensions are documented in /usr/doc/neatvi-*/README + +Tip: If you prefer neatvi as your default vi editor, you can simply +make a link: ln -sf /usr/bin/neatvi /usr/bin/vi diff --git a/development/neatvi/neatvi.SlackBuild b/development/neatvi/neatvi.SlackBuild new file mode 100644 index 0000000000..842711f352 --- /dev/null +++ b/development/neatvi/neatvi.SlackBuild @@ -0,0 +1,57 @@ +#!/bin/bash +# Slackware build script for neatvi +# Written by Dan-Simon Myrland <dansimon@radiotube.org> + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=neatvi +VERSION=${VERSION:-17} +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} + +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 {} \; + +make +install -m 2755 -D vi $PKG/usr/bin/$PRGNAM +strip --strip-unneeded $PKG/usr/bin/$PRGNAM + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $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/neatvi/neatvi.info b/development/neatvi/neatvi.info new file mode 100644 index 0000000000..9ddf590404 --- /dev/null +++ b/development/neatvi/neatvi.info @@ -0,0 +1,10 @@ +PRGNAM="neatvi" +VERSION="17" +HOMEPAGE="https://github.com/aligrudi/neatvi" +DOWNLOAD="https://github.com/aligrudi/neatvi/archive/17/neatvi-17.tar.gz" +MD5SUM="3e3d616f8615bcf69a4647c1ac4b353a" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Dan-Simon Myrland" +EMAIL="dansimon@radiotube.org" diff --git a/development/neatvi/slack-desc b/development/neatvi/slack-desc new file mode 100644 index 0000000000..9c0b79a1e7 --- /dev/null +++ b/development/neatvi/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------------------------------------------------------| +neatvi: neatvi (text editor) +neatvi: +neatvi: Neatvi is a simple and clean vi(1) implementation, despite its small +neatvi: size it supports UTF-8, syntax highlighting, multiple windows, +neatvi: keymaps and right-to-left languages, such as Arabic/Persian. A man +neatvi: page is not included, but the editor follow classic vi(1) closely, +neatvi: non-standard extensions are documented in /usr/doc/neatvi-*/README +neatvi: +neatvi: +neatvi: +neatvi: |