wok-next annotate pan/receipt @ rev 11591
Up shaarli (0.0.33beta)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 12 00:55:33 2012 +0100 (2012-01-12) |
parents | 57749b8f1c3c |
children | 126dad74a7ba |
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" |
erjo@9955 | 13 BUILD_DEPENDS="intltool gmime-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@3232 | 19 # apply debian fix for gcc 4.4.0 |
pascal@3232 | 20 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900 |
pascal@3232 | 21 while read file last; do |
pascal@3232 | 22 grep -q 'include <cstdio>' pan/$file || |
pascal@3232 | 23 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file |
pascal@3232 | 24 done <<EOT |
pascal@3232 | 25 general/log.cc cstdarg |
pascal@3232 | 26 general/progress.cc cstdarg |
pascal@3232 | 27 tasks/nntp.cc cstdarg |
pascal@3232 | 28 tasks/nntp-pool.cc config.h |
pascal@3232 | 29 usenet-utils/numbers.cc cctype |
pascal@3232 | 30 EOT |
allan316@3206 | 31 ./configure \ |
slaxemulator@11057 | 32 --prefix=/usr \ |
slaxemulator@11057 | 33 $CONFIGURE_ARGS && |
erjo@9955 | 34 make && make DESTDIR=$DESTDIR install |
allan316@3206 | 35 } |
allan316@3206 | 36 |
allan316@3206 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3206 | 38 genpkg_rules() |
allan316@3206 | 39 { |
allan316@3206 | 40 mkdir -p $fs/usr/share |
allan316@3206 | 41 cp -a $_pkg/usr/bin $fs/usr |
allan316@3206 | 42 cp -a $_pkg/usr/share/applications $fs/usr/share |
allan316@3206 | 43 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
allan316@3206 | 44 } |
allan316@3206 | 45 |