# Maintainer: Erich Gubler <erichdongubler@gmail.com>

pkgname=fzy
pkgver=1.1
pkgrel=1
pkgdesc="A better fuzzy finder"
url="https://github.com/jhawthorn/fzy"
arch=('i686' 'x86_64')
makedepends=('make' 'gcc')
license=('spdx:MIT')
source=(https://github.com/jhawthorn/${pkgname}/archive/${pkgver}.tar.gz)
sha512sums=('09a14c409f9c0000a0827c14007eeb919404e6b29b11b8d05c415575e678238a669c9fff7c8cd23ab330c9dc0341186c6c52347745813570cc4e0987e26d3781')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  make PREFIX=/usr DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
