summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd6dd22fda8553e07d7142d83f4719595888fbff (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
# Maintainer: Jonas Riedel <jonasriedel@pm.me>

pkgname=rusty-ls
pkgver=0.1.3
pkgrel=1
pkgdesc="A replacement of the ls command"
arch=('x86_64')
url="https://github.com/jonasrdl/rusty-ls"
license=("MIT")
makedepends=('cargo')
source=("${pkgname}-${pkgver}.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha512sums=("SKIP")

build() {
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  # use cargo to build from a tagged release
  cd "${srcdir}/${pkgname}-${pkgver}"
  cargo build --release --all-features
  cd -
}

package() {
  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}