# Maintainer: Maksim Bondarenkov <maksapple2306@gmail.com>

pkgname=fisher
pkgver=4.4.5
pkgrel=1
pkgdesc='A package manager for the fish shell'
arch=('any')
url='https://github.com/jorgebucaran/fisher'
license=('spdx:MIT')
depends=('fish' 'curl')
source=("https://github.com/jorgebucaran/fisher/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('73518f76a3537d744c6bd1bea7bd848b21b6676801dc5400fc00a4688d7a7964')

package() {
  cd "${pkgname}-${pkgver}"

  install -Dm644 functions/fisher.fish "${pkgdir}/usr/share/fish/vendor_functions.d/fisher.fish"
  install -Dm644 completions/fisher.fish "${pkgdir}/usr/share/fish/vendor_completions.d/fisher.fish"
  install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
