summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Dan-Simon Myrland <dansimon@radiotube.org>2025-06-13 07:58:35 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2025-06-13 08:02:09 +0700
commit72b48e958cbd9e5141bfb11e6c1ed0f823189b9f (patch)
tree9559e5207ea0789dcf7b42a8f61fdae87c985696
parent9e04d969effcc04bff50c72df30c88ee9201b9b3 (diff)
downloadslackbuilds-72b48e958cbd9e5141bfb11e6c1ed0f823189b9f.tar.gz
slackbuilds-72b48e958cbd9e5141bfb11e6c1ed0f823189b9f.tar.xz
office/nb: Added (Manage Notes).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--office/nb/README7
-rw-r--r--office/nb/nb.SlackBuild56
-rw-r--r--office/nb/nb.info10
-rw-r--r--office/nb/slack-desc19
4 files changed, 92 insertions, 0 deletions
diff --git a/office/nb/README b/office/nb/README
new file mode 100644
index 0000000000..8779c2e657
--- /dev/null
+++ b/office/nb/README
@@ -0,0 +1,7 @@
+nb is an elaborate bash script for note management. It uses external
+tools for much of its power.
+
+PS: Although nb doesn't have any dependencies per se, it is recommended
+that you install bat, pandoc, ripgrep, tig and w3m. It can also use a
+great many other external tools, se https://xwmx.github.io/nb for more
+information.
diff --git a/office/nb/nb.SlackBuild b/office/nb/nb.SlackBuild
new file mode 100644
index 0000000000..c38309050f
--- /dev/null
+++ b/office/nb/nb.SlackBuild
@@ -0,0 +1,56 @@
+#!/bin/bash
+# Slackware build script for nb
+# Written by Dan-Simon Myrland <dansimon@radiotube.org>
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=nb
+VERSION=${VERSION:-7.20.0}
+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 {} \;
+
+install -m 2755 -D bin/bookmark $PKG/usr/bin/bookmark
+install -m 2755 $PRGNAM $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.md $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/office/nb/nb.info b/office/nb/nb.info
new file mode 100644
index 0000000000..4d7143b207
--- /dev/null
+++ b/office/nb/nb.info
@@ -0,0 +1,10 @@
+PRGNAM="nb"
+VERSION="7.20.0"
+HOMEPAGE="https://xwmx.github.io/nb"
+DOWNLOAD="https://github.com/xwmx/nb/archive/7.20.0/nb-7.20.0.tar.gz"
+MD5SUM="8ad7184dfc38e9d7394ee2b9d4d1a371"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Dan-Simon Myrland"
+EMAIL="dansimon@radiotube.org"
diff --git a/office/nb/slack-desc b/office/nb/slack-desc
new file mode 100644
index 0000000000..5eb8422b83
--- /dev/null
+++ b/office/nb/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------------------------------------------------------|
+nb: nb (note manager)
+nb:
+nb: nb is an elaborate bash script for note management. It uses external
+nb: tools for much of its power.
+nb:
+nb:
+nb:
+nb:
+nb:
+nb:
+nb: