Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch linux PKGBUILD #159

Open
ericfreese opened this issue May 3, 2024 · 0 comments
Open

Arch linux PKGBUILD #159

ericfreese opened this issue May 3, 2024 · 0 comments

Comments

@ericfreese
Copy link

Didn't see anything in the AUR for this, 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.

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant