wok-next view pan/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 82b613cfd1e0
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.134"
5 CATEGORY="network"
6 SHORT_DESC="Usenet newsreader"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://pan.rebelbase.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}download/releases/$VERSION/source/$TARBALL"
14 BUILD_DEPENDS="intltool gmime-dev glib-dev gtk2-dev"
16 compile_rules() {
17 sed -i 's|<glib/gtypes.h>|<glib.h>|' \
18 pan/general/file-util.h \
19 pan/data/article-cache.h \
20 pan/gui/render-bytes.h
21 sed \
22 -e 's|<glib/gutils.h>|<glib.h>|' \
23 -e 's|<glib/gtestutils.h>|<glib.h>|' \
24 -e 's|<glibconfig.h>|<glib.h>|' \
25 -i pan/general/macros.h
26 sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc
27 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
28 -e 's|<glib/gthreadpool.h>|<glib.h>|' \
29 -e 's|<glib/gtimer.h>|<glib.h>|' \
30 -e 's|<glib/gmain.h>|<glib.h>|' \
31 -e 's|<glib/gutils.h>|<glib.h>|' \
32 -e 's|<glib/gmacros.h>|<glib.h>|' \
33 pan/general/worker-pool.h \
34 pan/general/time-elapsed.h \
35 pan/gui/render-bytes.cc
36 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
37 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
38 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
39 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
40 -e 's|<glib/giochannel.h>|<glib.h>|' \
41 pan/tasks/socket-impl-gio.h
42 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
43 pan/data-impl/data-impl.cc
44 while read file last; do
45 grep -q 'include <cstdio>' pan/$file ||
46 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
47 done <<EOT
48 general/log.cc cstdarg
49 general/progress.cc cstdarg
50 tasks/nntp.cc cstdarg
51 tasks/nntp-pool.cc config.h
52 usenet-utils/numbers.cc cctype
53 EOT
54 ./configure \
55 --prefix=/usr \
56 $CONFIGURE_ARGS &&
57 make &&
58 make DESTDIR=$install install
59 }
61 genpkg_rules() {
62 mkdir -p $fs/usr/share
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/share/applications $fs/usr/share
65 cp -a $install/usr/share/pixmaps $fs/usr/share
66 DEPENDS="pcre gmime gtkspell gtk2 cairo gcc-lib-base glibc-base"
67 }