Ports: Add taskwarrior port

This commit is contained in:
Seal Sealy 2023-03-10 19:02:05 +03:00 committed by Sam Atkins
parent ba8bd2e558
commit 0dbca4af06
Notes: sideshowbarker 2024-07-17 09:49:33 +09:00
2 changed files with 26 additions and 0 deletions

View File

@ -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 |

25
Ports/taskwarrior/package.sh Executable file
View File

@ -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
}