# Maintainer: gifnksm pkgname=cargo-sync-rdme pkgver=0.3.4 pkgrel=1 epoch= pkgdesc="Cargo subcommand to synchronize README with crate documentation" arch=('x86_64' 'aarch64') url="https://github.com/gifnksm/cargo-sync-rdme" license=('MIT' 'Apache-2.0') depends=('libgit2' 'cargo') conflicts=('cargo-sync-rdme-bin') provides=('cargo-sync-rdme') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gifnksm/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('9780061245b0559558bb5e1f93e5d633572754da89f32486e8385c4f5a4c9644') build() { cd "${pkgname}-${pkgver}" cargo xtask dist } test() { cd "${pkgname}-${pkgver}" cargo xtask test } package() { cd "${pkgname}-${pkgver}/target/xtask/dist/${pkgname}-v${pkgver}/" install -Dm 755 "$(uname -m)-unknown-linux-gnu/cargo-sync-rdme" -t "${pkgdir}/usr/bin/" install -Dm 644 noarch/man/cargo-sync-rdme.1 -t "${pkgdir}/usr/share/man/man1/" install -Dm 644 noarch/completion/_cargo-sync-rdme -t "${pkgdir}/usr/share/zsh/site-functions/" install -Dm 644 noarch/completion/cargo-sync-rdme.bash -t "${pkgdir}/usr/share/bash-completion/completions/" install -Dm 644 noarch/completion/cargo-sync-rdme.fish -t "${pkgdir}/usr/share/fish/vendor_completions.d/" install -Dm 644 noarch/LICENSE-* -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 noarch/README.md -t "${pkgdir}/usr/share/doc/${pkgname}" }