From 0dbca4af06af30e975a2e8e325662c96e01a0d7e Mon Sep 17 00:00:00 2001 From: Seal Sealy Date: Fri, 10 Mar 2023 19:02:05 +0300 Subject: [PATCH] Ports: Add taskwarrior port --- Ports/AvailablePorts.md | 1 + Ports/taskwarrior/package.sh | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 Ports/taskwarrior/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index c08d3cb90c0..bba40db2479 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -262,6 +262,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`stress-ng`](stress-ng/) | stress-ng | 0.14.03 | https://github.com/ColinIanKing/stress-ng | | [`Super-Mario`](Super-Mario/) | Super-Mario Clone | | https://github.com/Bennyhwanggggg/Super-Mario-Clone-Cpp | | [`tar`](tar/) | GNU tar | 1.34 | https://www.gnu.org/software/tar/ | +| [`taskwarrior`](taskwarrior/) | TODO list manager | 2.6.2 | https://taskwarrior.org/ | | [`tcl`](tcl/) | Tcl | 8.6.12 | https://www.tcl-lang.org/ | | [`termcap`](termcap/) | GNU termcap | 1.3.1 | https://www.gnu.org/software/termutils/ | | [`thesilversearcher`](thesilversearcher/) | The Silver Searcher: A fast code-searching tool | 2.2.0 | https://github.com/ggreer/the_silver_searcher | diff --git a/Ports/taskwarrior/package.sh b/Ports/taskwarrior/package.sh new file mode 100755 index 00000000000..75c9733674c --- /dev/null +++ b/Ports/taskwarrior/package.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='taskwarrior' +version='2.6.2' +useconfigure='true' +files="https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v${version}/task-${version}.tar.gz taskwarrior-${version}.tar.gz b1d3a7f000cd0fd60640670064e0e001613c9e1cb2242b9b3a9066c78862cfec" +auth_type='sha256' +workdir="task-${version}" +configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DENABLE_SYNC=OFF" "-DTASK_DOCDIR=share/doc/taskwarrior-2.6.2" "-DTASK_RCDIR=share/taskwarrior/rc") +depends=("libuuid") + +configure() { + mkdir -p taskwarrior-build + cmake -G "Unix Makefiles" \ + -S task-${version} \ + -B taskwarrior-build \ + "${configopts[@]}" +} + +build() { + make -C taskwarrior-build +} + +install() { + make -C taskwarrior-build install +}