wok view pan/receipt @ rev 25615

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