wok view pan/receipt @ rev 4232
xfce4-session: fix FSH
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 24 15:33:52 2009 +0200 (2009-09-24) |
parents | db989f95819d |
children | f3327707164a |
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.133"
5 CATEGORY="network"
6 SHORT_DESC="pan is a usenet newsreader"
7 MAINTAINER="allan316@gmail.com"
8 DEPENDS="pcre gmime gtkspell"
9 BUILD_DEPENDS="pcre-dev gmime gmime-dev gtkspell-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://pan.rebelbase.com"
12 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # apply debian fix for gcc 4.4.0
19 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900
20 while read file last; do
21 grep -q 'include <cstdio>' pan/$file ||
22 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
23 done <<EOT
24 general/log.cc cstdarg
25 general/progress.cc cstdarg
26 tasks/nntp.cc cstdarg
27 tasks/nntp-pool.cc config.h
28 usenet-utils/numbers.cc cctype
29 EOT
30 ./configure \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make && make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/share/applications $fs/usr/share
44 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
45 }