summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8cec4d7d6052ef1dbdd98e697a085348a61d033 (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
35
36
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Dustin Blackman
# Contributor: Dustin Blackman

pkgname='languagetool-code-comments-bin'
pkgver=0.6.3
pkgrel=1
pkgdesc='Integrates the LanguageTool API to parse, spell check, and correct the grammar of your code comments!'
url='https://github.com/dustinblackman/languagetool-code-comments'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('languagetool-code-comments')
conflicts=('languagetool-code-comments')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/dustinblackman/languagetool-code-comments/releases/download/v0.6.3/languagetool-code-comments_0.6.3_linux_arm64.tar.gz")
sha256sums_aarch64=('bfd68a2e8c1dcca07cb57ead8fe6ca10f783c41497af9acddc18a0abe7bc37ae')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/dustinblackman/languagetool-code-comments/releases/download/v0.6.3/languagetool-code-comments_0.6.3_linux_amd64.tar.gz")
sha256sums_x86_64=('d90cc89b36774b0b9f58cfc9e84eafdd667167525096391cdf944402ba819b64')

package() {
  # bin
  install -Dm755 "./languagetool-code-comments" "${pkgdir}/usr/bin/languagetool-code-comments"

  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/languagetool-code-comments/LICENSE"
  install -Dm644 "./THIRDPARTY.html" "${pkgdir}/usr/share/licenses/languagetool-code-comments/THIRDPARTY.html"

  # completions
  mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
  mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
  mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
  install -Dm644 "./completions/languagetool-code-comments.bash" "${pkgdir}/usr/share/bash-completion/completions/languagetool-code-comments"
  install -Dm644 "./completions/languagetool-code-comments.zsh" "${pkgdir}/usr/share/zsh/site-functions/_languagetool-code-comments"
  install -Dm644 "./completions/languagetool-code-comments.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/languagetool-code-comments.fish"
}