task: fix corss, fix build (link with system sqlite)

This commit is contained in:
Duncaen 2025-07-04 20:42:49 +02:00
parent a51c1da800
commit dceaeaa097
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35
2 changed files with 19 additions and 3 deletions

View file

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

View file

@ -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 <orphan@voidlinux.org>"
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