wok-6.x view liferea/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents f940e42dac11
children 22471cbea549
line source
1 # SliTaz package receipt.
3 PACKAGE="liferea"
4 VERSION="1.8.15"
5 CATEGORY="utilities"
6 SHORT_DESC="News aggregator for online news feeds"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://liferea.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/project/$PACKAGE/Liferea%20Stable/$VERSION/$TARBALL"
13 DEPENDS="gtk+ glib pango GConf libunique libxml2 libxslt sqlite libsoup \
14 libwebkit libnotify gnutls json-glib" #intltool?
15 BUILD_DEPENDS="gtk+-dev glib-dev pango-dev GConf GConf-dev ORBit2-dev \
16 libunique-dev libxml2-dev libxslt-dev sqlite-dev libsoup-dev libwebkit-dev \
17 libnotify-dev gnutls-dev json-glib-dev"
19 LOCALES="da de es fr it pt_BR ru zh_CN"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/lwindolf/liferea/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure $CONFIGURE_ARGS \
32 --enable-sm --disable-schemas-install --enable-libnotify &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/locale
41 mkdir -p $fs/etc
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/etc/gconf $fs/etc
44 cp -a $install/usr/share/applications $fs/usr/share/
45 cp -a $install/usr/share/icons $fs/usr/share/
46 cp -a $install/usr/share/liferea $fs/usr/share/
47 for locale in $LOCALES; do
48 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
49 done
50 }