algolia / algolia/cli

Arch linux PKGBUILD

Open
#159 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
109
Forks
32
Avg merge
9d 3h
Merged PRs (30d)
3

Description

Didn't see [anything in the AUR for this](https://aur.archlinux.org/packages?O=0&K=algolia), so spent a bit of time writing up a small PKGBUILD for it and thought I'd post it here in case it helps someone else.

```sh
pkgname=algolia-cli
pkgver=1.6.9
pkgrel=1
pkgdesc='Algolia CLI'
arch=(any)
url="https://github.com/algolia/cli"
license=(MIT)
makedepends=('go')
source=("$pkgname.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('160343c0e16a9639062dcfd96c7aced38a709b89279e1f02a5484ae3d3f43f76')

package() {
cd "cli-$pkgver"

make build
install -Dm 755 ./algolia "$pkgdir"/usr/local/bin/algolia

# Only installs zsh completions but could be extended to install others as well
./scripts/completions.sh
install -Dm 755 ./completions/algolia.zsh "$pkgdir"/usr/share/zsh/site-functions/_algolia
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.