# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=rover
pkgver=1.0.0
pkgrel=0
pkgdesc="Rover is a small file browser that aims to be simple, fast and portable"
url="http://lecram.github.io/p/rover/"
arch="all"
license="Public-Domain"
makedepends="ncurses-dev ncurses5-widec-libs"
subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/lecram/rover/archive/v${pkgver}.tar.gz"

builddir=${srcdir}/${pkgname}-${pkgver}
prepare() {
	cd "$builddir"
	sed -i 's/PREFIX=\/usr\/local/PREFIX=\/usr/' Makefile
	sed -i 's/MANPREFIX=\$(PREFIX)\/man/MANPREFIX=\$(PREFIX)\/share\/man/' Makefile
}

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make DESTDIR=${pkgdir} install
}

sha512sums="ab19eb57d6e03f0c76befdf5b8e7cd07e0beddafba89824483430f70cb161e66a5722ba8eb4e3db16ed50d76be1f728c9e324cca56e95c3baccd8468af137e3f  rover-1.0.0.tar.gz"
