summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ecddf1a66f7a0757fe5d7670c47133f7b0b7576f (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.18.1
source=(sane-fmt-4bb45b5c161eef37ff5cd1535409ebcc6c4c1707::https://github.com/sane-fmt/sane-fmt/releases/download/0.18.1/sane-fmt-x86_64-unknown-linux-gnu completion.0.18.1.bash::https://github.com/sane-fmt/sane-fmt/releases/download/0.18.1/completion.bash completion.0.18.1.fish::https://github.com/sane-fmt/sane-fmt/releases/download/0.18.1/completion.fish completion.0.18.1.zsh::https://github.com/sane-fmt/sane-fmt/releases/download/0.18.1/completion.zsh https://raw.githubusercontent.com/sane-fmt/sane-fmt/0.18.1/README.md https://raw.githubusercontent.com/sane-fmt/sane-fmt/0.18.1/LICENSE.md)
_checksum=4bb45b5c161eef37ff5cd1535409ebcc6c4c1707
_completion_checksums=(581114313c4f35abc50dee8540f62e114d3fa4ca d789e339aa46babe08799edd90902b012b00c15d 3b9db16a74be778088f97ade5acce4e676388dc1)
# 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"
}