wok-4.x view pan/receipt @ rev 10815

freeradius: Fixed typo in bdeps. libltld should be libltdl.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jun 05 12:07:03 2011 +0000 (2011-06-05)
parents 4ac89a72e7e1
children 49fd674392d7
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 make && make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/share/applications $fs/usr/share
42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
43 }