# Contributor:
# Maintainer:
pkgname=most
pkgver=5.0.0a
pkgrel=1
pkgdesc="A terminal pager similar to more and less"
url="ftp://space.mit.edu/pub/davis/most"
arch="all"
license="GPL-2.0-or-later"
depends=""
depends_dev=
makedepends="slang-dev ncurses-dev"
install=""
subpackages="$pkgname-doc"
source="$url/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure --prefix=/usr --sysconfdir=/etc
	make -j1 || return 1
}

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

md5sums="30f2131b67f61716f6fe1f65205da48b  most-5.0.0a.tar.gz"
sha256sums="17a16593da064ddd484f53157d54b83bcd98ea45ab1ed361eea64c4fae163a10  most-5.0.0a.tar.gz"
sha512sums="8487895d736ea19a7a635dc67c974104a0c469a88a74f8b757a0509b9dee4534fd70b966054624be71734ac7de9a9daa1efb56827ff176b9468ce5a0b1ed2349  most-5.0.0a.tar.gz"
