summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35d556c003070d4348bc44242a0b50225977340a (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.15.0
source=(sane-fmt-eacaeb88a83316b5a1d59b0a1d11b67d91a34556::https://github.com/sane-fmt/sane-fmt/releases/download/0.15.0/sane-fmt-x86_64-unknown-linux-gnu completion.0.15.0.bash::https://github.com/sane-fmt/sane-fmt/releases/download/0.15.0/completion.bash completion.0.15.0.fish::https://github.com/sane-fmt/sane-fmt/releases/download/0.15.0/completion.fish completion.0.15.0.zsh::https://github.com/sane-fmt/sane-fmt/releases/download/0.15.0/completion.zsh https://raw.githubusercontent.com/sane-fmt/sane-fmt/0.15.0/README.md https://raw.githubusercontent.com/sane-fmt/sane-fmt/0.15.0/LICENSE.md)
_checksum=eacaeb88a83316b5a1d59b0a1d11b67d91a34556
_completion_checksums=(a28c5424c07739b251a6b2aeafecefcfcc33b529 3367adcda4d3d0c12039c1df0540e82d8ebd6dde 3ec38e25c6ea65ac1657ff77d09da63e2d6e05a2)
# 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"
}