mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 10:22:56 +02:00
task: fix corss, fix build (link with system sqlite)
This commit is contained in:
parent
a51c1da800
commit
dceaeaa097
2 changed files with 19 additions and 3 deletions
8
srcpkgs/task/patches/link-system-sqlite.patch
Normal file
8
srcpkgs/task/patches/link-system-sqlite.patch
Normal 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)
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue