wok view pan/receipt @ rev 9414

Up: mlt to 0.7.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Mar 29 17:41:04 2011 +0000 (2011-03-29)
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 }