summaryrefslogtreecommitdiffstats
path: root/office/timew
diff options
context:
space:
mode:
Diffstat (limited to 'office/timew')
-rw-r--r--office/timew/timew.SlackBuild22
-rw-r--r--office/timew/timew.info9
2 files changed, 21 insertions, 10 deletions
diff --git a/office/timew/timew.SlackBuild b/office/timew/timew.SlackBuild
index 2045bb5945..f8242aa440 100644
--- a/office/timew/timew.SlackBuild
+++ b/office/timew/timew.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
# Slackware build script for timewarrior
# Copyright <2019> <Christian Schneider> <Austria>
# All rights reserved.
@@ -20,10 +20,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#Set initial variables
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=timew
-VERSION=${VERSION:-1.1.1}
+VERSION=${VERSION:-1.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -33,7 +37,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+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}
@@ -67,13 +78,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Build
cmake \
-DCMAKE_BUILD_TYPE=release . \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr
-#make clean
+make clean
make
make install DESTDIR=$PKG
@@ -95,4 +107,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/office/timew/timew.info b/office/timew/timew.info
index 11e54cb616..919edf0a31 100644
--- a/office/timew/timew.info
+++ b/office/timew/timew.info
@@ -1,11 +1,10 @@
PRGNAM="timew"
-VERSION="1.1.1"
-HOMEPAGE="https://taskwarrior.org/docs/timewarrior/"
-DOWNLOAD="https://taskwarrior.org/download/timew-1.1.1.tar.gz"
-MD5SUM="ce0e9913125fe9ebe581a889507bb116"
+VERSION="1.3.0"
+HOMEPAGE="https://timewarrior.net/"
+DOWNLOAD="https://github.com/GothenburgBitFactory/timewarrior/releases/download/v1.3.0/timew-1.3.0.tar.gz"
+MD5SUM="06b08fb9f256818d95d6b9572333dfd9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Christian Schneider"
EMAIL="christian_schneider@gmx.at"
-