pantry/projects/crates.io/rtx-cli/package.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

2023-04-15 04:06:26 +03:00
distributable:
2024-01-03 02:09:03 +03:00
url: https://github.com/jdx/mise/archive/refs/tags/v{{version}}.tar.gz
2023-04-15 04:06:26 +03:00
strip-components: 1
2024-01-03 02:09:03 +03:00
# renamed at 2024.1.0
# provides:
# - bin/rtx
# - bin/mise
2023-04-15 04:06:26 +03:00
versions:
2024-01-03 02:09:03 +03:00
github: jdx/mise
2023-04-15 04:06:26 +03:00
strip: /v/
2024-01-03 02:09:03 +03:00
ignore: [0.x.y, 1.x.y] # they moved to calver
2023-04-15 04:06:26 +03:00
dependencies:
openssl.org: ^1.1 # newer RTX after 1.35.2 versions require openssl
2023-04-15 04:06:26 +03:00
build:
dependencies:
2023-08-26 11:21:02 +03:00
rust-lang.org: ^1.70
2023-04-15 04:06:26 +03:00
rust-lang.org/cargo: '*'
freedesktop.org/pkg-config: '*'
2023-04-15 04:06:26 +03:00
script:
2024-02-07 21:14:52 +03:00
# curve25519-dalek 4.1.2 introduces some odd simd issues on x86-64
- run: sed -i
-e 's/version = "4.1.2"/version = "4.1.1"/'
-e 's/0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348/e89b8c6a2e4b1f45971ad09761aafb85514a84744b67a95e32c3cc1352d1f65c/'
Cargo.lock
if: '>=2024.2.6'
2024-01-03 02:09:03 +03:00
- cargo install --locked --path . --root {{prefix}}
# FIXME: <2024 isn't matching like it should. this should be split at 2024.1.0
- run: |
if test -f rtx; then
ln -s rtx mise
elif test -f mise; then
ln -s mise rtx
fi
working-directory: '{{prefix}}/bin'
2023-05-08 00:39:39 +03:00
env:
linux/x86-64:
# portable-atomic-1.3.1 uses this, but it's unstable
RUSTFLAGS: -C target-feature=+cmpxchg16b
2023-04-15 04:06:26 +03:00
2024-01-03 02:09:03 +03:00
test: mise --version