summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cc1a0572173bb56e0f27bb4de7ab6ecefbdbd6e (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
# Maintainer: Emma Tebibyte <emma@tebibyte.media>

pkgname="hopper"
pkgver=0.1.0
pkgrel=1
pkgdesc="A Minecraft mod manager for the terminal"
arch=("x86_64")
url="https://git.tebibyte.media/minecrust/hopper"
license=("AGPL3")
source=("git+https://git.tebibyte.media/minecrust/hopper")

depends=()
optdepends=()
makedepends=("rust" "cargo" "git")
provides=("hopper")

sha256sums=("SKIP")

pkgver() {
  cd $pkgname
  cargo pkgid | cut -d# -f2 | cut -d: -f2
}

prepare() {
    cd $srcdir/$pkgname
    cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

check() {
    cd $srcdir/$pkgname
    export RUSTUP_TOOLCHAIN=stable
    cargo test --frozen --all-features
}

package() {
    cd $srcdir/$pkgname
    cargo install --no-track --all-features --root "$pkgdir/usr/" --path .
}