SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "newsbeuter"

# SliTaz package receipt.

PACKAGE="newsbeuter"
VERSION="2.9"
CATEGORY="network"
SHORT_DESC="RSS/Atom feed reader for text terminals."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://www.newsboat.org/"
WGET_URL="https://ftp.kaist.ac.kr/macports/distfiles/$PACKAGE/$TARBALL"
PROVIDE="newsboat"

DEPENDS="gcc83-lib-base libxml2 libjson-c curl sqlite stfl"
BUILD_DEPENDS="pkg-config gettext libxml2-dev libjson-c-dev curl-dev \
sqlite-dev stfl-dev ncursesw-dev gcc83 gcc83-lib-base"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/newsboat/newsboat/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/r*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|is_error(\([^)]*\))|\1 == nullptr|' src/*.cpp
    sed -i 's|/usr/local|/usr|;s|^include config.mk|-&|' Makefile
    export LD_LIBRARY_PATH="/usr/libgcc83:$LD_LIBRARY_PATH"
    make CC=gcc-83 CXX=g++-83 &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr/
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)