wok annotate netrik/receipt @ rev 24442

created recipe for firefox-official-da
author Hans-G?nter Theisgen
date Mon Feb 14 07:26:07 2022 +0100 (2022-02-14)
parents 380ffe05937a
children 7dd01dedad38
rev   line source
al@13649 1 # SliTaz package receipt.
al@13649 2
al@13649 3 PACKAGE="netrik"
al@13649 4 VERSION="1.16.1"
al@13649 5 CATEGORY="utilities"
al@13649 6 SHORT_DESC="Advanced text-mode WWW browser, focusing on a convenient user interface"
al@13649 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15000 8 LICENSE="GPL2"
al@13649 9 WEB_SITE="http://netrik.sourceforge.net/"
al@13649 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@13649 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@13649 12
al@13649 13 DEPENDS="glibc-base ncursesw readline"
al@13649 14 BUILD_DEPENDS="readline-dev ncursesw-dev"
al@13649 15
pascal@24402 16 # What is the latest version available today?
pascal@24402 17 current_version()
pascal@24402 18 {
pascal@24402 19 wget -O - https://sourceforge.net/projects/netrik/files/stable/ 2>/dev/null | \
pascal@24402 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 21 sed '/scope="row/!d;s|.*/stable/||;s|%20.*||;q'
pascal@24402 22 }
pascal@24402 23
al@13649 24 # Rules to configure and make the package.
al@13649 25 compile_rules()
al@13649 26 {
al@13649 27 cd $src
al@13649 28
al@13649 29 # fix headers
al@13649 30 for src in colors-bright colors-dark links main pager parse-syntax render screen; do
al@13649 31 sed -i '/#include <ncursesw/ s|ncursesw/||g' ${src}.c
al@13649 32 done
al@13649 33
al@13649 34 ./configure $CONFIGURE_ARGS && make && make install
al@13649 35 }
al@13649 36
al@13649 37 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13649 38 genpkg_rules()
al@13649 39 {
al@13649 40 mkdir -p $fs/usr/bin
al@13649 41 cp -a $install/usr/bin $fs/usr
al@13649 42 }