wok view pan/receipt @ rev 24228
syslinux: add apple partitions (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 01 11:57:50 2022 +0000 (2022-01-01) |
parents | 4bec62c8999a |
children | 2a0479881723 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.146"
5 CATEGORY="network"
6 SHORT_DESC="A 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 DEPENDS="cairo gcc-lib-base glibc-base gmime gtk+ gtkspell pcre"
15 BUILD_DEPENDS="gettext glib-dev gmime-dev gtk+-dev gtkspell-dev intltool itstool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
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
56 ./configure \
57 --prefix=/usr \
58 --with-gmime30=yes \
59 $CONFIGURE_ARGS &&
60 make &&
61 make DESTDIR=$DESTDIR install
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 mkdir -p $fs/usr/share
69 cp -a $install/usr/bin $fs/usr
70 cp -a $install/usr/share/applications $fs/usr/share
71 cp -a $install/usr/share/icons $fs/usr/share
72 }