# Maintainer: Yigit Sever pkgname=tidy-viewer _pkgname=tv pkgver=0.0.20 pkgrel=1 pkgdesc="CLI csv pretty printer that uses column styling" arch=('x86_64') url="https://github.com/alexhallam/tv" license=('Unlicense') makedepends=('cargo') source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('2f4d3a81f6d0d0a343f574d9db2aaf5824b97cb9a5117f744949948b34833fd7') 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 -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" install -Dm644 "$srcdir/$_pkgname-$pkgver/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }