blob: 98d5034500c486fac7c5d264dab83009ae8f7e86 (
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.13
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.13/leetgo_linux_arm64.tar.gz")
sha256sums_aarch64=('c1ba60d7dcad0e08c69e1bb34dd0440b1836cf8ac30116e9098f0e0c2222ecbe')
source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/j178/leetgo/releases/download/v1.4.13/leetgo_linux_x86_64.tar.gz")
sha256sums_x86_64=('b1820add5e7fb2ae6296bcecfa40ced50debadc07dd145683792faea2f55cd98')
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"
}
|