From e70753b5e03a0f3c118db1b4a74f184a6d283351 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 14 Nov 2016 17:35:59 -0500 Subject: [PATCH] New package: timewarrior-1.0.0 --- srcpkgs/timewarrior/patches/musl.patch | 13 +++++++++++++ srcpkgs/timewarrior/template | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/timewarrior/patches/musl.patch create mode 100644 srcpkgs/timewarrior/template diff --git a/srcpkgs/timewarrior/patches/musl.patch b/srcpkgs/timewarrior/patches/musl.patch new file mode 100644 index 00000000000..e31c29e3f1e --- /dev/null +++ b/srcpkgs/timewarrior/patches/musl.patch @@ -0,0 +1,13 @@ +--- src/libshared/src/FS.cpp.old 2016-11-14 18:06:06.269639871 -0500 ++++ src/libshared/src/FS.cpp 2016-11-14 18:11:33.523550960 -0500 +@@ -905,8 +905,8 @@ + free (buf); + return result; + #else +- char buf[PATH_MAX]; +- getcwd (buf, PATH_MAX - 1); ++ char buf[FILENAME_MAX]; ++ getcwd (buf, FILENAME_MAX - 1); + return std::string (buf); + #endif + } diff --git a/srcpkgs/timewarrior/template b/srcpkgs/timewarrior/template new file mode 100644 index 00000000000..fe7bc3429d0 --- /dev/null +++ b/srcpkgs/timewarrior/template @@ -0,0 +1,16 @@ +# Template file for 'timewarrior' +pkgname=timewarrior +version=1.0.0 +revision=1 +wrksrc="timew-${version}" +build_style=cmake +short_desc="Track time from the command line" +maintainer="Toyam Cox " +license="MIT" +homepage="https://timewarrior.net" +distfiles="https://taskwarrior.org/download/timew-${version}.tar.gz" +checksum=ac027910e1e8365bdd218a8b42389b26d017d38d3c96516c408db6d5a44e0bb5 + +post_install() { + vlicense LICENSE +}