wok-current view pan/receipt @ rev 24746
ncursesw-dev: add pkg config files (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 16 11:02:39 2022 +0000 (2022-03-16) |
parents | 6f23fb91aeaa |
children | 8298f21ebb0a |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/\/releases\//!d;s|.*releases/||;s|/source.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \
28 pan/data/article-cache.h \
29 pan/gui/render-bytes.h
30 sed -i -e 's|<glib/gutils.h>|<glib.h>|' \
31 -e 's|<glib/gtestutils.h>|<glib.h>|' \
32 -e 's|<glibconfig.h>|<glib.h>|' \
33 pan/general/macros.h
34 sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc
35 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
36 -e 's|<glib/gthreadpool.h>|<glib.h>|' \
37 -e 's|<glib/gtimer.h>|<glib.h>|' \
38 -e 's|<glib/gmain.h>|<glib.h>|' \
39 -e 's|<glib/gutils.h>|<glib.h>|' \
40 -e 's|<glib/gmacros.h>|<glib.h>|' \
41 pan/general/worker-pool.h \
42 pan/general/time-elapsed.h \
43 pan/gui/render-bytes.cc
44 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
45 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
46 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
47 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
48 -e 's|<glib/giochannel.h>|<glib.h>|' \
49 pan/tasks/socket-impl-gio.h
50 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
51 pan/data-impl/data-impl.cc
52 while read file last; do
53 grep -q 'include <cstdio>' pan/$file ||
54 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
55 done <<EOT
56 general/log.cc cstdarg
57 general/progress.cc cstdarg
58 tasks/nntp.cc cstdarg
59 tasks/nntp-pool.cc config.h
60 usenet-utils/numbers.cc cctype
61 EOT
63 ./configure \
64 --prefix=/usr \
65 --with-gmime30=yes \
66 $CONFIGURE_ARGS &&
67 make &&
68 make DESTDIR=$DESTDIR install
69 }
71 # Rules to gen a SliTaz package suitable for Tazpkg.
72 genpkg_rules()
73 {
74 mkdir -p $fs/usr/share
76 cp -a $install/usr/bin $fs/usr
77 cp -a $install/usr/share/applications $fs/usr/share
78 cp -a $install/usr/share/icons $fs/usr/share
79 }