wok-6.x view pan/receipt @ rev 12384
Up: file to 5.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Apr 19 22:34:10 2012 +0000 (2012-04-19) |
parents | 57749b8f1c3c |
children | 126dad74a7ba |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://pan.rebelbase.com"
10 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
12 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
13 BUILD_DEPENDS="intltool gmime-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # apply debian fix for gcc 4.4.0
20 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900
21 while read file last; do
22 grep -q 'include <cstdio>' pan/$file ||
23 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
24 done <<EOT
25 general/log.cc cstdarg
26 general/progress.cc cstdarg
27 tasks/nntp.cc cstdarg
28 tasks/nntp-pool.cc config.h
29 usenet-utils/numbers.cc cctype
30 EOT
31 ./configure \
32 --prefix=/usr \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/share/applications $fs/usr/share
43 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
44 }