]> git.friedersdorff.com Git - max/slackbuilds.git/commitdiff
Add todo.sh slackbuild
authorMaximilian Friedersdorff <maxf130@gmail.com>
Fri, 14 Oct 2016 09:57:12 +0000 (10:57 +0100)
committerMaximilian Friedersdorff <maxf130@gmail.com>
Fri, 14 Oct 2016 09:57:12 +0000 (10:57 +0100)
todo.txt_cli/slack-desc [new file with mode: 0644]
todo.txt_cli/todo.txt-cli.SlackBuild [new file with mode: 0644]

diff --git a/todo.txt_cli/slack-desc b/todo.txt_cli/slack-desc
new file mode 100644 (file)
index 0000000..fc66015
--- /dev/null
@@ -0,0 +1,2 @@
+todo.txt-cli: A simple and extensible shell script for managing your todo.txt
+toto.txt-cli: file.
diff --git a/todo.txt_cli/todo.txt-cli.SlackBuild b/todo.txt_cli/todo.txt-cli.SlackBuild
new file mode 100644 (file)
index 0000000..f83aa3e
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh -e
+# Maximilian Friedersdorff revision data 2016/10/02
+
+# Set initial variables
+CWD=$(pwd)
+if [ "$TMP" = "" ]; then
+  TMP=/tmp
+fi
+
+VERSION=2.10
+PKG_VERSION=2.10
+BUILD=${BUILD:-1_maf}
+
+APP=todo.txt-cli
+
+PKG=$TMP/package-$APP
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+rm -rf $TMP/$APP-$VERSION
+
+cd $TMP || exit 1
+
+tar -zxvf $CWD/$APP-$VERSION.tar.gz || exit 1
+cd $APP-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s
+
+mkdir -p $PKG/usr/bin
+cp -a todo.sh $PKG/usr/bin/
+mkdir -p $PKG/usr/share/bash-completion/completions
+cp -a todo_completion $PKG/usr/share/bash-completion/completions/todo
+mkdir -p $PKG/etc/todo
+sed "s/^\(export[ \t]*TODO_DIR=\).*/\1~\/.todo/" todo.cfg > $PKG/etc/todo/config
+
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $TMP/$APP-$PKG_VERSION-$ARCH-$BUILD.tgz