wok-next view pan/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents a500604c8152
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.146"
5 CATEGORY="network"
6 SHORT_DESC="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 BUILD_DEPENDS="glib-dev gmime-dev gtk2-dev intltool itstool"
16 compile_rules()
17 {
18 sed -i 's|<glib/gtypes.h>|<glib.h>|' \
19 pan/general/file-util.h \
20 pan/data/article-cache.h \
21 pan/gui/render-bytes.h
22 sed -i \
23 -e 's|<glib/gutils.h>|<glib.h>|' \
24 -e 's|<glib/gtestutils.h>|<glib.h>|' \
25 -e 's|<glibconfig.h>|<glib.h>|' \
26 pan/general/macros.h
27 sed -i 's|<glib/gmain.h>|<glib.h>|' \
28 pan/general/worker-pool.cc
29 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
30 -e 's|<glib/gthreadpool.h>|<glib.h>|' \
31 -e 's|<glib/gtimer.h>|<glib.h>|' \
32 -e 's|<glib/gmain.h>|<glib.h>|' \
33 -e 's|<glib/gutils.h>|<glib.h>|' \
34 -e 's|<glib/gmacros.h>|<glib.h>|' \
35 pan/general/worker-pool.h \
36 pan/general/time-elapsed.h \
37 pan/gui/render-bytes.cc
38 sed -i 's|<glib/gtypes.h>|<glib.h>|' \
39 pan/usenet-utils/mime-utils.h
40 sed -i 's|<glib/gunicode.h>|<glib.h>|' \
41 pan/usenet-utils/text-massager.cc
42 sed -i 's|<glib/gthread.h>|<glib.h>|' \
43 pan/general/locking.h
44 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
45 -e 's|<glib/giochannel.h>|<glib.h>|' \
46 pan/tasks/socket-impl-gio.h
47 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
48 pan/data-impl/data-impl.cc
49 while read file last
50 do
51 grep -q 'include <cstdio>' pan/$file ||
52 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
53 done <<EOT
54 general/log.cc cstdarg
55 general/progress.cc cstdarg
56 tasks/nntp.cc cstdarg
57 tasks/nntp-pool.cc config.h
58 usenet-utils/numbers.cc cctype
59 EOT
61 ./configure \
62 --prefix=/usr \
63 $CONFIGURE_ARGS &&
64 make &&
65 make DESTDIR=$install install
66 }
68 genpkg_rules()
69 {
70 mkdir -p $fs/usr/share
72 cp -a $install/usr/bin $fs/usr
73 cp -a $install/usr/share/applications $fs/usr/share
74 cp -a $install/usr/share/pixmaps $fs/usr/share
76 DEPENDS="gcc-lib-base glibc-base gmime gtk2 gtkspell libcairo pcre"
77 }