wok-current view pan/receipt @ rev 22611
updated codiad ( -> 2.8.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 10 13:31:59 2020 +0100 (2020-01-10) |
parents | 7896f0694ef6 |
children | 6f23fb91aeaa |
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.134"
5 CATEGORY="network"
6 SHORT_DESC="pan is a usenet newsreader"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://pan.rebelbase.com"
11 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
13 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
14 BUILD_DEPENDS="intltool gmime-dev glib-dev gtk+-dev gtkspell-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \
21 pan/data/article-cache.h \
22 pan/gui/render-bytes.h
23 sed -i -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>|' pan/general/worker-pool.cc
28 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
29 -e 's|<glib/gthreadpool.h>|<glib.h>|' \
30 -e 's|<glib/gtimer.h>|<glib.h>|' \
31 -e 's|<glib/gmain.h>|<glib.h>|' \
32 -e 's|<glib/gutils.h>|<glib.h>|' \
33 -e 's|<glib/gmacros.h>|<glib.h>|' \
34 pan/general/worker-pool.h \
35 pan/general/time-elapsed.h \
36 pan/gui/render-bytes.cc
37 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
38 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
39 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
40 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
41 -e 's|<glib/giochannel.h>|<glib.h>|' \
42 pan/tasks/socket-impl-gio.h
43 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
44 pan/data-impl/data-impl.cc
45 while read file last; do
46 grep -q 'include <cstdio>' pan/$file ||
47 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
48 done <<EOT
49 general/log.cc cstdarg
50 general/progress.cc cstdarg
51 tasks/nntp.cc cstdarg
52 tasks/nntp-pool.cc config.h
53 usenet-utils/numbers.cc cctype
54 EOT
55 ./configure \
56 --prefix=/usr \
57 $CONFIGURE_ARGS &&
58 make && make DESTDIR=$DESTDIR install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/share
65 cp -a $install/usr/bin $fs/usr
66 cp -a $install/usr/share/applications $fs/usr/share
67 cp -a $install/usr/share/pixmaps $fs/usr/share
68 }