wok-next annotate pan/receipt @ rev 13607

spacefm: add and improve custom config files and add desktop file fot destop pref
author Christophe Lincoln <pankso@slitaz.org>
date Sat Nov 10 20:00:42 2012 +0100 (2012-11-10)
parents b71e5df54a23
children 7896f0694ef6
rev   line source
allan316@3206 1 # SliTaz package receipt.
allan316@3206 2
allan316@3206 3 PACKAGE="pan"
gokhlayeh@9188 4 VERSION="0.134"
allan316@3206 5 CATEGORY="network"
allan316@3206 6 SHORT_DESC="pan is a usenet newsreader"
allan316@3206 7 MAINTAINER="allan316@gmail.com"
allan316@3206 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
allan316@3206 9 WEB_SITE="http://pan.rebelbase.com"
allan316@3206 10 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
allan316@3206 11
erjo@9955 12 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
pascal@12569 13 BUILD_DEPENDS="intltool gmime-dev glib-dev gtk+-dev"
erjo@9955 14
allan316@3206 15 # Rules to configure and make the package.
allan316@3206 16 compile_rules()
allan316@3206 17 {
allan316@3206 18 cd $src
pascal@12963 19 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \
pascal@12963 20 pan/data/article-cache.h \
pascal@12963 21 pan/gui/render-bytes.h
pascal@12963 22 sed -i -e 's|<glib/gutils.h>|<glib.h>|' \
pascal@12963 23 -e 's|<glib/gtestutils.h>|<glib.h>|' \
pascal@12963 24 -e 's|<glibconfig.h>|<glib.h>|' \
pascal@12963 25 pan/general/macros.h
pascal@12963 26 sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc
pascal@12963 27 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
pascal@12963 28 -e 's|<glib/gthreadpool.h>|<glib.h>|' \
pascal@12963 29 -e 's|<glib/gtimer.h>|<glib.h>|' \
pascal@12963 30 -e 's|<glib/gmain.h>|<glib.h>|' \
pascal@12963 31 -e 's|<glib/gutils.h>|<glib.h>|' \
pascal@12963 32 -e 's|<glib/gmacros.h>|<glib.h>|' \
pascal@12963 33 pan/general/worker-pool.h \
pascal@12963 34 pan/general/time-elapsed.h \
pascal@12963 35 pan/gui/render-bytes.cc
pascal@12963 36 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
pascal@12963 37 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
pascal@12963 38 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
pascal@12963 39 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
pascal@12963 40 -e 's|<glib/giochannel.h>|<glib.h>|' \
pascal@12963 41 pan/tasks/socket-impl-gio.h
pascal@12963 42 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
pascal@12963 43 pan/data-impl/data-impl.cc
pascal@3232 44 while read file last; do
pascal@3232 45 grep -q 'include <cstdio>' pan/$file ||
pascal@3232 46 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
pascal@3232 47 done <<EOT
pascal@3232 48 general/log.cc cstdarg
pascal@3232 49 general/progress.cc cstdarg
pascal@3232 50 tasks/nntp.cc cstdarg
pascal@3232 51 tasks/nntp-pool.cc config.h
pascal@3232 52 usenet-utils/numbers.cc cctype
pascal@3232 53 EOT
allan316@3206 54 ./configure \
slaxemulator@11057 55 --prefix=/usr \
slaxemulator@11057 56 $CONFIGURE_ARGS &&
erjo@9955 57 make && make DESTDIR=$DESTDIR install
allan316@3206 58 }
allan316@3206 59
allan316@3206 60 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3206 61 genpkg_rules()
allan316@3206 62 {
allan316@3206 63 mkdir -p $fs/usr/share
allan316@3206 64 cp -a $_pkg/usr/bin $fs/usr
allan316@3206 65 cp -a $_pkg/usr/share/applications $fs/usr/share
allan316@3206 66 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
allan316@3206 67 }
allan316@3206 68