#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=w3m
_mainver=0.5.3
_gitdate=20210102
_debver=11u0.5
pkgver=${_mainver}.${_gitdate}
pkgrel=1gv
source=("https://github.com/tats/w3m/archive/refs/tags/v${_mainver}+git${_gitdate}+deb${_debver}.tar.gz")
docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "about-nls")
url=https://github.com/tats/w3m

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"w3m (Text-based Web browser as well as pager)"
"w3m is a World Wide Web (WWW) text based client. It has English and"
"Japanese help files and an option menu and can be configured to use"
"either language. It will display hypertext markup language (HTML)"
"documents containing links to files residing on the local system, as"
"well as files residing on remote systems. It can display HTML tables,"
"frames, and images, and supports tabbed browsing. In addition, it can"
"be used as a \"pager\" in much the same manner as \"more\" or \"less\"."
)


build() {
	cd $startdir/src/$pkgname-*
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--enable-image=x11,fb \
		--with-imagelib=imlib2 \
		--with-termlib=ncurses \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
} 
