wok annotate 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 |
rev | line source |
---|---|
allan316@3206 | 1 # SliTaz package receipt. |
allan316@3206 | 2 |
allan316@3206 | 3 PACKAGE="pan" |
Hans-G?nter@23832 | 4 VERSION="0.146" |
allan316@3206 | 5 CATEGORY="network" |
Hans-G?nter@23832 | 6 SHORT_DESC="A usenet newsreader." |
allan316@3206 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15002 | 8 LICENSE="GPL2" |
Hans-G?nter@23832 | 9 WEB_SITE="http://pan.rebelbase.com/" |
Hans-G?nter@23832 | 10 |
allan316@3206 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23832 | 12 WGET_URL="${WEB_SITE}download/releases/$VERSION/source/$TARBALL" |
allan316@3206 | 13 |
Hans-G?nter@23832 | 14 DEPENDS="cairo gcc-lib-base glibc-base gmime gtk+ gtkspell pcre" |
Hans-G?nter@23832 | 15 BUILD_DEPENDS="gettext glib-dev gmime-dev gtk+-dev gtkspell-dev intltool itstool" |
erjo@9955 | 16 |
allan316@3206 | 17 # Rules to configure and make the package. |
allan316@3206 | 18 compile_rules() |
allan316@3206 | 19 { |
pascal@12963 | 20 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \ |
pascal@12963 | 21 pan/data/article-cache.h \ |
pascal@12963 | 22 pan/gui/render-bytes.h |
pascal@12963 | 23 sed -i -e 's|<glib/gutils.h>|<glib.h>|' \ |
pascal@12963 | 24 -e 's|<glib/gtestutils.h>|<glib.h>|' \ |
pascal@12963 | 25 -e 's|<glibconfig.h>|<glib.h>|' \ |
pascal@12963 | 26 pan/general/macros.h |
pascal@12963 | 27 sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc |
pascal@12963 | 28 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \ |
pascal@12963 | 29 -e 's|<glib/gthreadpool.h>|<glib.h>|' \ |
pascal@12963 | 30 -e 's|<glib/gtimer.h>|<glib.h>|' \ |
pascal@12963 | 31 -e 's|<glib/gmain.h>|<glib.h>|' \ |
pascal@12963 | 32 -e 's|<glib/gutils.h>|<glib.h>|' \ |
pascal@12963 | 33 -e 's|<glib/gmacros.h>|<glib.h>|' \ |
pascal@12963 | 34 pan/general/worker-pool.h \ |
pascal@12963 | 35 pan/general/time-elapsed.h \ |
pascal@12963 | 36 pan/gui/render-bytes.cc |
pascal@12963 | 37 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h |
pascal@12963 | 38 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc |
pascal@12963 | 39 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h |
pascal@12963 | 40 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \ |
pascal@12963 | 41 -e 's|<glib/giochannel.h>|<glib.h>|' \ |
pascal@12963 | 42 pan/tasks/socket-impl-gio.h |
pascal@12963 | 43 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \ |
pascal@12963 | 44 pan/data-impl/data-impl.cc |
pascal@3232 | 45 while read file last; do |
pascal@3232 | 46 grep -q 'include <cstdio>' pan/$file || |
pascal@3232 | 47 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file |
pascal@3232 | 48 done <<EOT |
pascal@3232 | 49 general/log.cc cstdarg |
pascal@3232 | 50 general/progress.cc cstdarg |
pascal@3232 | 51 tasks/nntp.cc cstdarg |
pascal@3232 | 52 tasks/nntp-pool.cc config.h |
pascal@3232 | 53 usenet-utils/numbers.cc cctype |
pascal@3232 | 54 EOT |
Hans-G?nter@23832 | 55 |
Hans-G?nter@23832 | 56 ./configure \ |
Hans-G?nter@23832 | 57 --prefix=/usr \ |
Hans-G?nter@23832 | 58 --with-gmime30=yes \ |
slaxemulator@11057 | 59 $CONFIGURE_ARGS && |
Hans-G?nter@23832 | 60 make && |
Hans-G?nter@23832 | 61 make DESTDIR=$DESTDIR install |
allan316@3206 | 62 } |
allan316@3206 | 63 |
allan316@3206 | 64 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3206 | 65 genpkg_rules() |
allan316@3206 | 66 { |
allan316@3206 | 67 mkdir -p $fs/usr/share |
Hans-G?nter@23832 | 68 |
Hans-G?nter@23832 | 69 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23832 | 70 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@23832 | 71 cp -a $install/usr/share/icons $fs/usr/share |
allan316@3206 | 72 } |