wok-current annotate w3m/receipt @ rev 25541

w3m: fix version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 10 17:54:21 2023 +0000 (21 months ago)
parents aa585fba6e4b
children
rev   line source
mojo@14202 1 # SliTaz package receipt.
mojo@14202 2
mojo@14202 3 PACKAGE="w3m"
pascal@25541 4 VERSION="0.5.3+git20220429"
mojo@14202 5 CATEGORY="network"
mojo@14202 6 SHORT_DESC="Text Mode Web Browser"
mojo@14202 7 MAINTAINER="mojo@slitaz.org"
pascal@15601 8 LICENSE="MIT"
pascal@25469 9 WEB_SITE="https://w3m.sourceforge.net/index.en.html"
pascal@25541 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25541 11 WGET_URL="https://github.com/tats/w3m/archive/refs/tags/v$VERSION.tar.gz"
al@17501 12 TAGS="web-browser"
mojo@14202 13
psychomaniak@20124 14 DEPENDS="gc libcrypto libssl ncurses imlib2"
mojo@25497 15 BUILD_DEPENDS="gc gc-dev libcrypto-dev openssl-dev imlib2-dev gcc83"
mojo@14202 16
pascal@24113 17 current_version()
pascal@24113 18 {
pascal@24113 19 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
pascal@24113 20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
pascal@24113 21 }
pascal@24113 22
mojo@14202 23 # Rules to configure and make the package.
mojo@14202 24 compile_rules()
mojo@14202 25 {
mojo@25497 26 ./configure \
mojo@25497 27 CC=gcc-83 \
mojo@25497 28 CXX=g++-83 \
mojo@25497 29 --enable-image=x11,fb \
mojo@25497 30 --with-imagelib=imlib2 \
mojo@25497 31 $CONFIGURE_ARGS &&
mojo@25497 32 make && make install
mojo@14202 33 }
mojo@14202 34
mojo@14202 35 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@14202 36 genpkg_rules()
mojo@14202 37 {
mojo@14202 38 cp -a $install/* $fs
mojo@14202 39 }