wok view newsbeuter/receipt @ rev 25801

created recipe for xfce4-calculator-plugin
author Hans-G?nter Theisgen
date Sat Nov 02 14:21:07 2024 +0100 (3 months ago)
parents 505d1daeed6c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="newsbeuter"
4 VERSION="2.9"
5 CATEGORY="network"
6 SHORT_DESC="RSS/Atom feed reader for text terminals."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.newsboat.org/"
11 #WGET_URL="https://ftp.kaist.ac.kr/macports/distfiles/$PACKAGE/$TARBALL"
12 WGET_URL="https://github.com/newsboat/newsboat/archive/r$VERSION.tar.gz"
13 PROVIDE="newsboat"
15 DEPENDS="gcc83-lib-base libxml2 libjson-c curl sqlite stfl"
16 BUILD_DEPENDS="pkg-config gettext libxml2-dev libjson-c-dev curl-dev \
17 sqlite-dev stfl-dev ncursesw-dev gcc83 gcc83-lib-base"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/newsboat/newsboat/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/r*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|is_error(\([^)]*\))|\1 == nullptr|' src/*.cpp
30 sed -i 's|/usr/local|/usr|;s|^include config.mk|-&|' Makefile
31 export LD_LIBRARY_PATH="/usr/libgcc83:$LD_LIBRARY_PATH"
32 make CC=gcc-83 CXX=g++-83 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr/
41 }