wok annotate snownews/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents b569b85b0fb9
children 4ca444413f2c
rev   line source
paul@2048 1 # SliTaz package receipt.
paul@2048 2
paul@2048 3 PACKAGE="snownews"
paul@4405 4 VERSION="1.5.12"
pascal@2054 5 CATEGORY="network"
paul@2048 6 SHORT_DESC="Text mode RSS newsreader."
paul@2048 7 MAINTAINER="paul@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
pascal@15001 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20679 10 WEB_SITE="https://github.com/kouya/snownews"
pascal@25026 11 WGET_URL="https://ftp.radix.pro/slackware/slackware64-14.2/source/n/$PACKAGE/$TARBALL"
pascal@15001 12
pascal@5007 13 DEPENDS="libxml2 ncurses zlib libcrypto"
paul@4405 14 BUILD_DEPENDS="zlib-dev libxml2-dev ncurses-dev gettext perl \
pascal@12456 15 openssl-dev acl libcroco wget"
paul@2048 16
pascal@24308 17 # What is the latest version available today?
pascal@24308 18 current_version()
pascal@24308 19 {
pascal@24308 20 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@24308 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 22 }
pascal@24308 23
paul@2048 24 # Rules to configure and make the package.
paul@2048 25 compile_rules()
paul@2048 26 {
pascal@17673 27 sed -i 's|lncurses|& -ltinfo|' *
paul@2048 28 ./configure --prefix=/usr &&
pascal@15001 29 make && make DESTDIR=$DESTDIR install
paul@2048 30 }
paul@2048 31
paul@2048 32 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@2048 33 genpkg_rules()
paul@2048 34 {
paul@2048 35 mkdir -p $fs/usr/share
pascal@15001 36 cp -a $install/usr/bin $fs/usr
pascal@15001 37 cp -a $install/usr/share/locale $fs/usr/share
paul@2048 38 }