wok-6.x annotate pan/receipt @ rev 24436
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 13:09:42 2022 +0000 (2022-02-13) |
parents | 6f23fb91aeaa |
children | 8298f21ebb0a |
rev | line source |
---|---|
allan316@3206 | 1 # SliTaz package receipt. |
allan316@3206 | 2 |
allan316@3206 | 3 PACKAGE="pan" |
Hans-G?nter@23832 | 4 VERSION="0.146" |
allan316@3206 | 5 CATEGORY="network" |
Hans-G?nter@23832 | 6 SHORT_DESC="A usenet newsreader." |
allan316@3206 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15002 | 8 LICENSE="GPL2" |
Hans-G?nter@23832 | 9 WEB_SITE="http://pan.rebelbase.com/" |
Hans-G?nter@23832 | 10 |
allan316@3206 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23832 | 12 WGET_URL="${WEB_SITE}download/releases/$VERSION/source/$TARBALL" |
allan316@3206 | 13 |
Hans-G?nter@23832 | 14 DEPENDS="cairo gcc-lib-base glibc-base gmime gtk+ gtkspell pcre" |
Hans-G?nter@23832 | 15 BUILD_DEPENDS="gettext glib-dev gmime-dev gtk+-dev gtkspell-dev intltool itstool" |
erjo@9955 | 16 |
pascal@24436 | 17 # What is the latest version available today? |
pascal@24436 | 18 current_version() |
pascal@24436 | 19 { |
pascal@24436 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24436 | 21 sed '/\/releases\//!d;s|.*releases/||;s|/source.*||;q' |
pascal@24436 | 22 } |
pascal@24436 | 23 |
allan316@3206 | 24 # Rules to configure and make the package. |
allan316@3206 | 25 compile_rules() |
allan316@3206 | 26 { |
pascal@12963 | 27 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \ |
pascal@12963 | 28 pan/data/article-cache.h \ |
pascal@12963 | 29 pan/gui/render-bytes.h |
pascal@12963 | 30 sed -i -e 's|<glib/gutils.h>|<glib.h>|' \ |
pascal@12963 | 31 -e 's|<glib/gtestutils.h>|<glib.h>|' \ |
pascal@12963 | 32 -e 's|<glibconfig.h>|<glib.h>|' \ |
pascal@12963 | 33 pan/general/macros.h |
pascal@12963 | 34 sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc |
pascal@12963 | 35 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \ |
pascal@12963 | 36 -e 's|<glib/gthreadpool.h>|<glib.h>|' \ |
pascal@12963 | 37 -e 's|<glib/gtimer.h>|<glib.h>|' \ |
pascal@12963 | 38 -e 's|<glib/gmain.h>|<glib.h>|' \ |
pascal@12963 | 39 -e 's|<glib/gutils.h>|<glib.h>|' \ |
pascal@12963 | 40 -e 's|<glib/gmacros.h>|<glib.h>|' \ |
pascal@12963 | 41 pan/general/worker-pool.h \ |
pascal@12963 | 42 pan/general/time-elapsed.h \ |
pascal@12963 | 43 pan/gui/render-bytes.cc |
pascal@12963 | 44 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h |
pascal@12963 | 45 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc |
pascal@12963 | 46 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h |
pascal@12963 | 47 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \ |
pascal@12963 | 48 -e 's|<glib/giochannel.h>|<glib.h>|' \ |
pascal@12963 | 49 pan/tasks/socket-impl-gio.h |
pascal@12963 | 50 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \ |
pascal@12963 | 51 pan/data-impl/data-impl.cc |
pascal@3232 | 52 while read file last; do |
pascal@3232 | 53 grep -q 'include <cstdio>' pan/$file || |
pascal@3232 | 54 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file |
pascal@3232 | 55 done <<EOT |
pascal@3232 | 56 general/log.cc cstdarg |
pascal@3232 | 57 general/progress.cc cstdarg |
pascal@3232 | 58 tasks/nntp.cc cstdarg |
pascal@3232 | 59 tasks/nntp-pool.cc config.h |
pascal@3232 | 60 usenet-utils/numbers.cc cctype |
pascal@3232 | 61 EOT |
Hans-G?nter@23832 | 62 |
Hans-G?nter@23832 | 63 ./configure \ |
Hans-G?nter@23832 | 64 --prefix=/usr \ |
Hans-G?nter@23832 | 65 --with-gmime30=yes \ |
slaxemulator@11057 | 66 $CONFIGURE_ARGS && |
Hans-G?nter@23832 | 67 make && |
Hans-G?nter@23832 | 68 make DESTDIR=$DESTDIR install |
allan316@3206 | 69 } |
allan316@3206 | 70 |
allan316@3206 | 71 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3206 | 72 genpkg_rules() |
allan316@3206 | 73 { |
allan316@3206 | 74 mkdir -p $fs/usr/share |
Hans-G?nter@23832 | 75 |
Hans-G?nter@23832 | 76 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23832 | 77 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@23832 | 78 cp -a $install/usr/share/icons $fs/usr/share |
allan316@3206 | 79 } |