summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a60252d3828145c4f044f68c0e98fea604cf9106 (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
# Maintainer: Funami
pkgname=cargo-nono
pkgver=0.1.9
pkgrel=2
pkgdesc="A cargo subcommand to detect (possible) no_std compatibility of your crate and dependencies"
arch=('x86_64')
url="https://github.com/hobofan/cargo-nono"
license=('APACHE' 'MIT')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha256sums=('d197cd6cea7c40ae9ad969d7bd1cc79573c3cbe9619cfd201fcba7bfaf29dc0a')

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

build() {
  cd "$pkgname-$pkgver"
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  cargo build --frozen --release
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
  install -Dm644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
}