summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 457d96020c3605cb735c3652a9097b29662a7eb9 (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
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Scott Little swlittle7 [at] gmail [dot] com

pkgname=nat
_pkgname=natls
pkgver=2.1.14
pkgrel=1
pkgdesc="The Better ls"
arch=(x86_64)
url="https://github.com/willdoescode/nat"
license=('MIT')
makedepends=("cargo")
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v${pkgver}.tar.gz")
sha256sums=('bcce7eebf7f9396f76556b067df1223c54119a82140df7d109e1d3073899c85c')


prepare() {
	cd "$pkgname-$pkgver"
	export RUSTUP_TOOLCHAIN=stable
	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 --all-features
}

package() {
	cd "$pkgname-$pkgver"
	install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_pkgname"
}