Skip to content

Commit

Permalink
Ports: Add taskwarrior port
Browse files Browse the repository at this point in the history
  • Loading branch information
seal331 authored and AtkinsSJ committed Mar 15, 2023
1 parent ba8bd2e commit 0dbca4a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions Ports/AvailablePorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
25 changes: 25 additions & 0 deletions Ports/taskwarrior/package.sh
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 0dbca4a

Please sign in to comment.