From 1c0b56d9963558a1081ec752c832f8fe318ed99e Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Fri, 14 Oct 2016 10:57:12 +0100 Subject: [PATCH] Add todo.sh slackbuild --- todo.txt_cli/slack-desc | 2 ++ todo.txt_cli/todo.txt-cli.SlackBuild | 41 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 todo.txt_cli/slack-desc create mode 100644 todo.txt_cli/todo.txt-cli.SlackBuild diff --git a/todo.txt_cli/slack-desc b/todo.txt_cli/slack-desc new file mode 100644 index 0000000..fc66015 --- /dev/null +++ b/todo.txt_cli/slack-desc @@ -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 index 0000000..f83aa3e --- /dev/null +++ b/todo.txt_cli/todo.txt-cli.SlackBuild @@ -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 -- 2.44.0