summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8323e73d1dd1747d442d577842d464fb0776b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Hoàng Văn Khải <hvksmr1996@gmail.com>

# This file is automatically generated. Do not edit.

pkgname=sane-fmt-bin
pkgver=0.14.0
source=(sane-fmt-453078700ad6a30506ba407c9c1ac16a53d26666::https://github.com/sane-fmt/sane-fmt/releases/download/0.14.0/sane-fmt-x86_64-unknown-linux-gnu completion.0.14.0.bash::https://github.com/sane-fmt/sane-fmt/releases/download/0.14.0/completion.bash completion.0.14.0.fish::https://github.com/sane-fmt/sane-fmt/releases/download/0.14.0/completion.fish completion.0.14.0.zsh::https://github.com/sane-fmt/sane-fmt/releases/download/0.14.0/completion.zsh https://raw.githubusercontent.com/sane-fmt/sane-fmt/0.14.0/README.md https://raw.githubusercontent.com/sane-fmt/sane-fmt/0.14.0/LICENSE.md)
_checksum=453078700ad6a30506ba407c9c1ac16a53d26666
_completion_checksums=(1b9d966d419902957a150707e401597fae3d7d6c 1f5ce6e09ae01fd7a54144487feef4eba58b009e 8771e790653e1b26b47962198ab882cb2a03a944)
# 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'
provides=(sane-fmt)
conflicts=(sane-fmt)
sha1sums=(
  "$_checksum"                  # for the sane-fmt binary
  "${_completion_checksums[@]}" # for the completions
  SKIP                          # for the readme
  SKIP                          # for the license
)

package() {
  install -Dm755 "sane-fmt-$_checksum" "$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 "completion.$pkgver.bash" "$pkgdir/usr/share/bash-completion/completions/sane-fmt"
  install -Dm644 "completion.$pkgver.fish" "$pkgdir/usr/share/fish/completions/sane-fmt.fish"
  install -Dm644 "completion.$pkgver.zsh" "$pkgdir/usr/share/zsh/site-functions/_sane-fmt"
}