# Maintainer: desbma # shellcheck disable=SC2034,SC2148,SC2154,SC2164 pkgname=zoxide pkgver=0.7.4 pkgrel=1 pkgdesc='A fast cd command that learns your habits' arch=('x86_64') url="https://github.com/ajeetdsouza/${pkgname}" license=('MIT') makedepends=('rust') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ajeetdsouza/${pkgname}/archive/v${pkgver}.tar.gz") sha512sums=('ef97f6735e6ad3ff3da2bd2057ecff1945d2dd67655633827e60a701b630882707bdcd12a30e2621830cf9385338cd053ff9f699a5410e0dd53dacb5b336ce2d') build() { cd "${pkgname}-${pkgver}" cargo build --release --locked } package() { cd "${pkgname}-${pkgver}" install -Dm 755 -t "${pkgdir}/usr/bin" ./target/release/${pkgname} install -Dm 644 -t "${pkgdir}/usr/share/man/man1" man/${pkgname}*.1 install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }