wok-6.x view pan/receipt @ rev 9898
ruby-entreprise-doc: fix path
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 11:44:43 2011 +0200 (2011-05-17) |
parents | ec066bd77049 |
children | 57749b8f1c3c |
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.134"
5 CATEGORY="network"
6 SHORT_DESC="pan is a usenet newsreader"
7 MAINTAINER="allan316@gmail.com"
8 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
9 BUILD_DEPENDS="intltool"
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 }