diff options
author | Severen Redwood | 2022-12-16 02:48:42 +1300 |
---|---|---|
committer | Severen Redwood | 2022-12-16 02:48:42 +1300 |
commit | cbc70881b9e544e954a3e2c63fcbac26b46f596e (patch) | |
tree | 42b2b7ccdcb7a64b7367ebc22d191f728e16e63c /PKGBUILD | |
parent | 180dfc12f28ff8ac3661332a0eb494f22c94deaa (diff) | |
download | aur-cbc70881b9e544e954a3e2c63fcbac26b46f596e.tar.gz |
Update to 3.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -1,33 +1,37 @@ # Maintainer: Federico Squartini <federico.squartini at gmail dot com> pkgname=exercism -pkgver=3.0.13 +pkgver=3.1.0 pkgrel=1 -pkgdesc="Command line client for https://exercism.io" +pkgdesc="Command line tool for exercism.io" arch=("i686" "x86_64") url="https://github.com/exercism/cli" license=("MIT") -depends=('glibc') -makedepends=('go-pie') +depends=("glibc") +makedepends=("go-pie") source=("https://github.com/exercism/cli/archive/v${pkgver}.tar.gz") -sha256sums=('ecc27f272792bc8909d14f11dd08f0d2e9bde4cc663b3769e00eab6e65328a9f') +sha256sums=('34653a6a45d49daef10db05672c9b4e36c3c30e09d57c3c0f737034d071ae4f6') prepare() { - export GOPATH="$srcdir"/.gopath - mkdir -p "$GOPATH"/src/github.com/exercism - ln -sf "$srcdir"/cli-$pkgver "$GOPATH"/src/github.com/exercism/cli + export GOPATH="$srcdir/.gopath" + + mkdir -p "$GOPATH/src/github.com/exercism" + ln -sf "$srcdir/cli-$pkgver" "$GOPATH/src/github.com/exercism/cli" } build() { - export GOPATH="$srcdir"/.gopath - cd "$GOPATH"/src/github.com/exercism/cli + export GOPATH="$srcdir/.gopath" + + cd "$GOPATH/src/github.com/exercism/cli" go build -o out/exercism exercism/main.go } package(){ cd $srcdir/cli-${pkgver} + + install -D out/exercism "$pkgdir/usr/bin/exercism" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -D -m644 shell/exercism_completion.bash "$pkgdir/usr/share/$pkgname/completion/exercism_completion.bash" install -D -m644 shell/exercism_completion.zsh "$pkgdir/usr/share/$pkgname/completion/exercism_completion.zsh" - install -D out/exercism "$pkgdir/usr/bin/exercism" } |