summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c81639525eff4ec809c88af731197f17ca43f95 (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: j178 <10510431+j178@users.noreply.github.com>

pkgname='leetgo-bin'
pkgver=1.4.6
pkgrel=1
pkgdesc='leetgo is a command line tool for leetcode.com. It can help you to login, submit, test, and view your submissions.'
url='https://github.com/j178/leetgo'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('leetgo')
conflicts=('leetgo')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/j178/leetgo/releases/download/v1.4.6/leetgo_linux_arm64.tar.gz")
sha256sums_aarch64=('54443b3c3bab953db7fa3101f0480a85cdb9381ee8659e4c461f7b64ca04b515')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/j178/leetgo/releases/download/v1.4.6/leetgo_linux_x86_64.tar.gz")
sha256sums_x86_64=('957240f90412b2a1e5b3605172851731d4f82faed724156b575ee3889e088e25')

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

  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/leetgo/LICENSE"

  # 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/leetgo.bash" "${pkgdir}/usr/share/bash-completion/completions/leetgo"
  install -Dm644 "./completions/leetgo.zsh" "${pkgdir}/usr/share/zsh/site-functions/_leetgo"
  install -Dm644 "./completions/leetgo.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/leetgo.fish"
}