Skip to content

Commit a955f3c

Browse files
committed
New package: pixi-0.68.0
1 parent 5d5a577 commit a955f3c

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

srcpkgs/pixi/template

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Template file for 'pixi'
2+
pkgname=pixi
3+
version=0.68.0
4+
revision=1
5+
# No support upstream
6+
archs="~i686* ~armv6l* ~armv7l*"
7+
build_style=cargo
8+
build_helper="qemu"
9+
make_check_args="-- --test-threads=1 --skip linux_clean_environment_variables"
10+
make_install_args="--path crates/pixi"
11+
hostmakedepends="cmake pkg-config"
12+
makedepends="libzstd-devel"
13+
checkdepends="git"
14+
short_desc="Fast conda & PyPI package manager"
15+
maintainer="UENO, M. <eunosium-1128@live.jp>"
16+
license="BSD-3-Clause"
17+
homepage="https://pixi.prefix.dev/"
18+
changelog="https://raw.githubusercontent.com/prefix-dev/pixi/refs/heads/main/CHANGELOG.md"
19+
distfiles="https://github.com/prefix-dev/pixi/archive/refs/tags/v${version}.tar.gz"
20+
checksum=4b0e1eaf12a2acbd99e1472a2c4a0c1ae71e0de312117c91d17de3130177467a
21+
22+
post_patch() {
23+
# Upstream's .cargo/config.toml hardcodes "aarch64-linux-gnu-gcc" as both
24+
# CC and linker for the aarch64-unknown-linux-musl target, which doesn't
25+
# exist in the cross-aarch64-linux-musl container. Drop the file: void's
26+
# rust build_helper already exports CARGO_TARGET_<TRIPLE>_LINKER from
27+
# $CC, so nothing here is required for the build.
28+
rm -r .cargo
29+
}
30+
31+
pre_build() {
32+
# sha2-asm's build.rs calls .flag("-march=armv8-a+crypto") to enable the
33+
# SHA256 ARMv8 intrinsics (sha256su0 / sha256h). cc-rs appends the env
34+
# CFLAGS *after* programmatic flags, so void's cross profile's bare
35+
# -march=armv8-a wins by being last on the gcc command line and the
36+
# assembler then rejects the crypto opcodes. Rewrite the env -march in
37+
# place so the trailing -march also has +crypto.
38+
case "$XBPS_TARGET_MACHINE" in
39+
aarch64*)
40+
export CFLAGS="${CFLAGS//-march=armv8-a/-march=armv8-a+crypto}"
41+
export CXXFLAGS="${CXXFLAGS//-march=armv8-a/-march=armv8-a+crypto}"
42+
;;
43+
esac
44+
}
45+
46+
post_install() {
47+
vlicense LICENSE
48+
49+
for shell in bash fish zsh; do
50+
vtargetrun ${DESTDIR}/usr/bin/pixi completion -s ${shell} > pixi.${shell}
51+
vcompletion pixi.${shell} ${shell}
52+
done
53+
}

0 commit comments

Comments
 (0)