diff --git a/srcpkgs/task/patches/link-system-sqlite.patch b/srcpkgs/task/patches/link-system-sqlite.patch new file mode 100644 index 00000000000..ccea3649975 --- /dev/null +++ b/srcpkgs/task/patches/link-system-sqlite.patch @@ -0,0 +1,8 @@ +--- a/src/taskchampion-cpp/CMakeLists.txt ++++ b/src/taskchampion-cpp/CMakeLists.txt +@@ -27,3 +27,5 @@ + CRATE taskchampion_lib + FILES lib.rs + ) ++ ++corrosion_link_libraries(taskchampion_lib -lsqlite3) diff --git a/srcpkgs/task/template b/srcpkgs/task/template index 110f5294e67..6111d2f03c0 100644 --- a/srcpkgs/task/template +++ b/srcpkgs/task/template @@ -1,11 +1,11 @@ # Template file for 'task' pkgname=task version=3.4.1 -revision=1 +revision=2 build_style=cmake -build_helper="rust" +build_helper="rust qemu" hostmakedepends="rust cargo" -makedepends="libuuid-devel gnutls-devel rust-std" +makedepends="libuuid-devel gnutls-devel rust-std sqlite-devel" short_desc="Task Warrior command-line todo list manager" maintainer="Orphaned " license="MIT" @@ -13,6 +13,14 @@ homepage="https://taskwarrior.org" distfiles="https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v${version}/task-${version}.tar.gz" checksum=23eb60f73e42f16111cc3912b44ee12be6768860a2db2a9c6a47f8ac4786bac3 +post_extract() { + if [ "$CROSS_BUILD" ]; then + vsed \ + -e "s;\(\${cxxbridge}\);/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static \1;" \ + -i src/taskchampion-cpp/corrosion/cmake/Corrosion.cmake + fi +} + post_install() { vcompletion scripts/zsh/_task zsh vcompletion scripts/bash/task.sh bash