wok-next annotate 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 |
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" |
al@21020 | 6 SHORT_DESC="Usenet newsreader" |
allan316@3206 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15002 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://pan.rebelbase.com/" |
al@21020 | 10 |
allan316@3206 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@21020 | 12 WGET_URL="${WEB_SITE}download/releases/$VERSION/source/$TARBALL" |
allan316@3206 | 13 |
al@21017 | 14 BUILD_DEPENDS="intltool gmime-dev glib-dev gtk2-dev" |
erjo@9955 | 15 |
al@21020 | 16 compile_rules() { |
al@21020 | 17 sed -i 's|<glib/gtypes.h>|<glib.h>|' \ |
al@21020 | 18 pan/general/file-util.h \ |
pascal@12963 | 19 pan/data/article-cache.h \ |
pascal@12963 | 20 pan/gui/render-bytes.h |
al@21020 | 21 sed \ |
al@21020 | 22 -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>|' \ |
al@21020 | 25 -i 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 && |
al@21020 | 57 make && |
al@21020 | 58 make DESTDIR=$install install |
allan316@3206 | 59 } |
allan316@3206 | 60 |
al@21020 | 61 genpkg_rules() { |
allan316@3206 | 62 mkdir -p $fs/usr/share |
pascal@15002 | 63 cp -a $install/usr/bin $fs/usr |
pascal@15002 | 64 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15002 | 65 cp -a $install/usr/share/pixmaps $fs/usr/share |
al@21020 | 66 DEPENDS="pcre gmime gtkspell gtk2 cairo gcc-lib-base glibc-base" |
allan316@3206 | 67 } |