# MSYS2 maintainer: matoro <matoro@airmail.cc>
# Arch maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>

pkgname=vifm
pkgver=0.14.3
pkgrel=1
pkgdesc="Ncurses based file manager with vi like keybindings"
arch=('i686' 'x86_64')
url="https://vifm.info/"
msys2_references=(
  "anitya: 5090"
)
license=('GPL')
depends=('ncurses')
makedepends=('ncurses-devel' 'autotools' 'gcc' 'groff')
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.asc})
sha256sums=('16a9be1108d6a5a09e9f947f7256375e519ba41ebe9473659b20739fdbf3440e'
            'SKIP')
validpgpkeys=('22349CDBE5227D2108A5667799DC5E4DB05F6BE2') # xaizek <xaizek@posteo.net>

build() {
   cd "${srcdir}"/${pkgname}-${pkgver}
   ./configure --prefix=/usr --sysconfdir=/etc
   make
}

package() {
   cd "${srcdir}"/${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
}
