summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0075bfb8d6a9b611c5de79b9fcdea5ce7094654a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: grimsteel <admin at vocabustudy dot org>
pkgname=usaco-cli-bin
pkgver=0.4.0
pkgrel=1
pkgdesc="A command line tool for USACO"
url="https://github.com/grimsteel/usaco-cli"
arch=("x86_64")
license=("GPL-3.0-or-later")
optdepends=("org.freedesktop.secrets: encrypted credential backend")
source=(
    "https://github.com/grimsteel/usaco-cli/releases/download/v$pkgver/usaco-x86_64-unknown-linux-gnu"
)
sha256sums=('0e566bd5db0bf34d1ab1ac9eb786cf5fd74bc985d48d48a22b8210d17c633470')


package() {
  install -Dm 755 "${srcdir}/usaco-x86_64-unknown-linux-gnu" "${pkgdir}/usr/bin/usaco"
  # generate bash completions
  install -dm 755 "${pkgdir}/usr/share/bash-completion/completions"
  "${pkgdir}/usr/bin/usaco" completion bash > "${pkgdir}/usr/share/bash-completion/completions/usaco"
}