Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions srcpkgs/atuin/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'atuin'
pkgname=atuin
version=18.10.0
version=18.13.3
revision=1
build_style=cargo
build_helper=qemu
Expand All @@ -18,11 +18,26 @@ license="MIT"
homepage="https://atuin.sh"
changelog="https://raw.githubusercontent.com/atuinsh/atuin/main/CHANGELOG.md"
distfiles="https://github.com/atuinsh/atuin/archive/refs/tags/v${version}.tar.gz"
checksum=02228929976142f63b4464a35b8b29b29155e1814cf03e99c95381954c5d9e37
checksum=f16f43e373808e58b9645772359de662f082757e6ae350d767e360dc2a420e75

post_patch() {
cargo update --package ring@0.17.14 --precise 0.17.9
cargo update --package cc@1.2.38 --precise 1.1.37
_setup_env() {
# workaround the cc-rs mixing CFLAGS for host and target.
# https://github.com/rust-lang/cc-rs/issues/1469
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" \
CXXFLAGS_${RUST_BUILD//-/_}="${CXXFLAGS_host}" \
LDFLAGS_${RUST_BUILD//-/_}="${LDFLAGS_host}" \
CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" \
CXXFLAGS_${RUST_TARGET//-/_}="${CXXFLAGS}" \
LDFLAGS_${RUST_TARGET//-/_}="${LDFLAGS}" \
CFLAGS="" CXXFLAGS="" LDFLAGS=""
}

pre_build() {
_setup_env
}

pre_install() {
_setup_env
}

post_install() {
Expand Down