app=elinks
version=0.15.0
build=1sml
homepage="https://github.com/rkd77/elinks"
download="https://github.com/rkd77/elinks/archive/refs/tags/v0.15.0.tar.gz"
desc="Full-featured text-mode web browser"
requires="libidn expat zstd openssl lua53"
   
build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./autogen.sh

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-cgi \
    --disable-smb \
    --without-x \
    --enable-html-highlight \
    --with-zlib \
    --with-luapkg=lua53 \
    $builddist

  make 
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
e54f8ffe20577d7b82498ddeeb1fe3b10c3e4c88e01a84ea70fbf0f4689e0b44b7c7f17fe8a439ec2bb1fba817acfef9a47f2c93a55bf90af4018ac81f674c17  elinks-0.15.0.tar.gz
"
