# Template file for 'edbrowse'
pkgname=edbrowse
version=3.8.18
revision=1
build_style=gnu-makefile
make_use_env=true
make_build_args="QUICKJS_INCLUDE=${XBPS_CROSS_BASE}/usr/include/quickjs QUICKJS_LIB_NAME=quickjs CPPFLAGS+=-DQ_NG=0 CPPFLAGS+=-I${XBPS_CROSS_BASE}/usr/include/quickjs"
hostmakedepends="perl pkg-config"
makedepends="libcurl-devel pcre2-devel quickjs-devel readline-devel
 unixodbc-devel"
short_desc="Line-oriented text editor, web browser and mail client similar to ed(1)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later, MIT"
homepage="http://edbrowse.org/"
changelog="https://raw.githubusercontent.com/CMB/edbrowse/master/CHANGES"
distfiles="https://github.com/CMB/edbrowse/archive/v${version}.tar.gz"
checksum=fde2fceceeb08befa23289e76f6e8a22a7ba87b77dca79b165adfb4170a98629

do_install() {
	vbin src/edbrowse
	vman doc/man-edbrowse-debian.1 edbrowse.1
	vdoc doc/usersguide.html
	vdoc CHANGES
	vlicense LICENSE
}
