blob: 9c78bef8ee523a2ac0e58bdd0e78df3f0de56213 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Jeff Dickey <releases at mise dot jdx dot dev>
pkgname=mise
pkgver=2024.11.20
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=('0302e644cf74efe63f538ff2e389c95cb83477a16392286050bd24d965e8ba82a8bb8b64a820e18973ea6248535e84a827668df315f8d10f607da5d792c6a1be')
optdepends=('usage: completion support')
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/vendor_completions.d/mise.fish"
install -Dm644 completions/_mise "$pkgdir/usr/share/zsh/site-functions/_mise"
}
check() {
cd "$srcdir/$pkgname-$pkgver"
./target/release/mise --version
}
|