# Maintainer: Erich Eckner # Contributor: Jeff Dickey pkgname=mise pkgver=2024.12.13 pkgrel=1 pkgdesc='The front-end to your dev env' arch=('x86_64') url='https://github.com/jdx/mise' license=('MIT') makedepends=('cargo') provides=('mise') conflicts=('rtx' 'rtx-bin') replaces=('rtx') options=('!lto') source=("$pkgname-$pkgver.tar.gz::https://github.com/jdx/$pkgname/archive/v$pkgver.tar.gz") sha512sums=('5acfb2ace7f2c7676168c0a989e026ccabae07151f85ab0f8ee3b174083a80b401884b384b9cbd67a60d2caa78dc426336b53e311c9e6ba040d46574d08ff70d') optdepends=('usage: completion support') _pinned_dependencies=( 'bzip2=1.0.8' 'gcc-libs=14.2.1+r134+gab884fffe3fc' 'glibc>=2.39+r52+gf8e4623421' 'libgit2=1:1.8.4' 'openssl=3.4.0' ) depends=("${_pinned_dependencies[@]}") prepare() { cd "$srcdir/$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$srcdir/$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 target/release/mise "$pkgdir/usr/bin/mise" install -Dm644 man/man1/mise.1 "$pkgdir/usr/share/man/man1/mise.1" install -Dm644 completions/mise.bash "$pkgdir/usr/share/bash-completion/completions/mise" install -Dm644 completions/mise.fish "$pkgdir/usr/share/fish/completions/mise.fish" install -Dm644 completions/_mise "$pkgdir/usr/share/zsh/site-functions/_mise" } check() { cd "$srcdir/$pkgname-$pkgver" ./target/release/mise --version }