# Maintainer: Hoàng Văn Khải # This file is automatically generated. Do not edit. pkgname=sane-fmt pkgver=0.18.1 source=(sane-fmt-0.18.1.tar.gz::https://github.com/sane-fmt/sane-fmt/archive/0.18.1.tar.gz) sha1sums=(SKIP) # This PKGBUILD is not a full PKGBUILD # pkgname, pkgver, source, and sha1sums are to be generated pkgdesc='Opinionated code formatter for TypeScript and JavaScript' pkgrel=1 arch=(x86_64) license=(MIT) url='https://github.com/sane-fmt/sane-fmt' makedepends=(cargo) build() { cd "$srcdir/sane-fmt-$pkgver" cargo build --release --locked } package() { cd "$srcdir/sane-fmt-$pkgver" install -Dm755 target/release/sane-fmt "$pkgdir/usr/bin/sane-fmt" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" install -Dm644 exports/completion.bash "$pkgdir/usr/share/bash-completion/completions/sane-fmt" install -Dm644 exports/completion.fish "$pkgdir/usr/share/fish/completions/sane-fmt.fish" install -Dm644 exports/completion.zsh "$pkgdir/usr/share/zsh/site-functions/_sane-fmt" }