summaryrefslogtreecommitdiff
path: root/development/diakonos/diakonos.SlackBuild
diff options
context:
space:
mode:
authorMartin McConnell <bancensorshipfriends@hotmail.com>2014-01-13 06:46:59 +0700
committerErik Hanson <erik@slackbuilds.org>2014-01-29 23:21:00 -0600
commit444729b3deef904dfec2a3862d48530b57675141 (patch)
tree412a232a6d5bbeb77ba6d7011d932d50ce5e695c /development/diakonos/diakonos.SlackBuild
parent6209cf0706fd85537c8fe5528cea5ab54f2c635c (diff)
downloadslackbuilds-444729b3deef904dfec2a3862d48530b57675141.tar.gz
development/diakonos: Added (advanced console text editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/diakonos/diakonos.SlackBuild')
-rw-r--r--development/diakonos/diakonos.SlackBuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/development/diakonos/diakonos.SlackBuild b/development/diakonos/diakonos.SlackBuild
new file mode 100644
index 0000000000..cff33077e4
--- /dev/null
+++ b/development/diakonos/diakonos.SlackBuild
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# Slackware build script for diakonos
+# Written by Phillip Warner <pc_warner@yahoo.com>
+# Currently maintained by Martin McConnell <bancensorshipfriends@hotmail.com>
+
+PRGNAM=diakonos
+VERSION=${VERSION:-0.9.1}
+ARCH=noarch
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+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.bz2
+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 {} \;
+
+ruby install.rb \
+ --prefix /usr \
+ --conf-dir /etc \
+ --doc-dir /usr/doc/$PRGNAM-$VERSION \
+ --dest-dir $PKG \
+ --verbose
+
+# Don't clobber existing config files
+mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
+
+# This really is not necessary.
+rm $PKG/etc/diakonos-256-colour.conf
+
+# Instead copy them to the docs folder
+cp -a diakonos*.conf $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}