diff options
author | Jostein Berntsen <jbernts@broadpark.no> | 2017-03-14 22:49:04 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-18 06:58:34 +0700 |
commit | 8e269678480c2bcaab2414534dc76ecec4b54a0f (patch) | |
tree | 1cba8d556e49f730b3f600b453382dd7a79fcfa9 /office | |
parent | 92f47491307c200db302853e7bbba086e50ef8d4 (diff) | |
download | slackbuilds-8e269678480c2bcaab2414534dc76ecec4b54a0f.tar.gz |
office/watson: Added (CLI tool to track time).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/watson/README | 14 | ||||
-rw-r--r-- | office/watson/slack-desc | 19 | ||||
-rw-r--r-- | office/watson/watson.SlackBuild | 90 | ||||
-rw-r--r-- | office/watson/watson.info | 10 |
4 files changed, 133 insertions, 0 deletions
diff --git a/office/watson/README b/office/watson/README new file mode 100644 index 0000000000..22aad37a25 --- /dev/null +++ b/office/watson/README @@ -0,0 +1,14 @@ +Watson is here to help you monitor your time. You want to know how much time +you are spending on your projects? You want to generate a nice report for +your client? Watson is here for you. + +Tell Watson when you start working on a task with the start command. Then, +when you are done with this task, stop the timer with the stop command. This +will create what we call a frame. That’s pretty much everything you need to +know to start using Watson. + +Each frame consists of the name of a project and some tags. Your tags can be +shared across projects and can be used to generate detailed reports. + +Watson stores everything on your computer, but you can go wild and use +crick.io to store your sessions remotely and share it with your colleagues. diff --git a/office/watson/slack-desc b/office/watson/slack-desc new file mode 100644 index 0000000000..92769fb850 --- /dev/null +++ b/office/watson/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------------------------------------------------------| +watson: watson (CLI tool to track time) +watson: +watson: Watson is a time tracking tool for the CLI with many useful features. +watson: Watson can be used to tracking your project and tasks. +watson: It is written in Python. +watson: +watson: +watson: http://tailordev.github.io/Watson/ +watson: +watson: +watson: diff --git a/office/watson/watson.SlackBuild b/office/watson/watson.SlackBuild new file mode 100644 index 0000000000..9251ae7f4c --- /dev/null +++ b/office/watson/watson.SlackBuild @@ -0,0 +1,90 @@ +#!/bin/sh + +# Slackware build script for watson + +# Copyright 2017 Jostein Berntsen <jbernts@broadpark.no> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Written by Jostein Berntsen <jbernts@broadpark.no> + +PRGNAM=watson +SRCNAM=Watson +VERSION=${VERSION:-1.4.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$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 {} \; + +python setup.py install --root=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGELOG.md CONTRIBUTING.md LICENSE MANIFEST.in README.rst \ + $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:-tgz} diff --git a/office/watson/watson.info b/office/watson/watson.info new file mode 100644 index 0000000000..28cd3ca7f3 --- /dev/null +++ b/office/watson/watson.info @@ -0,0 +1,10 @@ +PRGNAM="watson" +VERSION="1.4.0" +HOMEPAGE="http://tailordev.github.io/Watson/" +DOWNLOAD="https://github.com/TailorDev/Watson/archive/1.4.0/Watson-1.4.0.tar.gz" +MD5SUM="209d0759637fc989d12980b6c3350cc3" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Jostein Berntsen" +EMAIL="jbernts@broadpark.no" |