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