# Template file for 'edbrowse'
pkgname=edbrowse
version=3.4.10
revision=1
hostmakedepends="unzip pkg-config"
makedepends="js-devel libressl-devel pcre-devel libcurl-devel readline-devel"
short_desc="line-oriented text editor and web browser similar to ed(1)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3"
homepage="http://the-brannons.com/edbrowse/"
distfiles="http://the-brannons.com/${pkgname}/${pkgname}-${version}.zip"
checksum=58089879c31b571792f76fc53c41374fcbe8386ea82fe451737ae72e8a78e826

do_build() {
	make ${makejobs} -C src	JS_CPPFLAGS="$(pkg-config mozjs185 --cflags)"
}

do_install() {
	vbin src/edbrowse
	vbin doc/setup.ebrc
	vsconf doc/sample.ebrc
	vman doc/man-edbrowse-debian.1 edbrowse.1
	vdoc doc/usersguide.html
	vdoc doc/philosophy.html
	vdoc README
	vdoc CHANGES
	vlicense COPYING
}	
