# Maintainer: desbma pkgname=zoxide pkgver=0.3.0 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=('c4ce3d8555abed04b2e9b3825189ef52da1b89e128ac18c0239b1e714ba0d05c7cfefa0d76c15c44cacaffa35899a10e0264159fc00bf59bb79960dd65865776') build() { cd "${pkgname}-${pkgver}" cargo build --release --locked } check() { cd "${pkgname}-${pkgver}" cargo test --release --locked } package() { cd "${pkgname}-${pkgver}" install -Dm 755 -t "${pkgdir}/usr/bin" ./target/release/${pkgname} install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }