# SliTaz package receipt. PACKAGE="netrik" VERSION="1.16.1" CATEGORY="utilities" SHORT_DESC="Advanced text-mode WWW browser, focusing on a convenient user interface" MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL2" WEB_SITE="https://netrik.sourceforge.net/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="glibc-base ncursesw readline" BUILD_DEPENDS="readline-dev ncursesw-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/netrik/files/stable/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/stable/||;s|%20.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src # fix headers for src in colors-bright colors-dark links main pager parse-syntax render screen; do sed -i '/#include