wok-next annotate pan/receipt @ rev 9370
Fixed leocad-pieces.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Mar 22 21:20:59 2011 +0000 (2011-03-22) |
parents | ec066bd77049 |
children | 57749b8f1c3c |
rev | line source |
---|---|
allan316@3206 | 1 # SliTaz package receipt. |
allan316@3206 | 2 |
allan316@3206 | 3 PACKAGE="pan" |
gokhlayeh@9188 | 4 VERSION="0.134" |
allan316@3206 | 5 CATEGORY="network" |
allan316@3206 | 6 SHORT_DESC="pan is a usenet newsreader" |
allan316@3206 | 7 MAINTAINER="allan316@gmail.com" |
pankso@5337 | 8 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base" |
gokhlayeh@9188 | 9 BUILD_DEPENDS="intltool" |
allan316@3206 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
allan316@3206 | 11 WEB_SITE="http://pan.rebelbase.com" |
allan316@3206 | 12 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL" |
allan316@3206 | 13 |
allan316@3206 | 14 # Rules to configure and make the package. |
allan316@3206 | 15 compile_rules() |
allan316@3206 | 16 { |
allan316@3206 | 17 cd $src |
pascal@3232 | 18 # apply debian fix for gcc 4.4.0 |
pascal@3232 | 19 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900 |
pascal@3232 | 20 while read file last; do |
pascal@3232 | 21 grep -q 'include <cstdio>' pan/$file || |
pascal@3232 | 22 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file |
pascal@3232 | 23 done <<EOT |
pascal@3232 | 24 general/log.cc cstdarg |
pascal@3232 | 25 general/progress.cc cstdarg |
pascal@3232 | 26 tasks/nntp.cc cstdarg |
pascal@3232 | 27 tasks/nntp-pool.cc config.h |
pascal@3232 | 28 usenet-utils/numbers.cc cctype |
pascal@3232 | 29 EOT |
allan316@3206 | 30 ./configure \ |
allan316@3206 | 31 --prefix=/usr \ |
allan316@3206 | 32 --infodir=/usr/share/info \ |
allan316@3206 | 33 --mandir=/usr/share/man \ |
allan316@3206 | 34 $CONFIGURE_ARGS && |
allan316@3206 | 35 make && make DESTDIR=$PWD/_pkg install |
allan316@3206 | 36 } |
allan316@3206 | 37 |
allan316@3206 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3206 | 39 genpkg_rules() |
allan316@3206 | 40 { |
allan316@3206 | 41 mkdir -p $fs/usr/share |
allan316@3206 | 42 cp -a $_pkg/usr/bin $fs/usr |
allan316@3206 | 43 cp -a $_pkg/usr/share/applications $fs/usr/share |
allan316@3206 | 44 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
allan316@3206 | 45 } |
allan316@3206 | 46 |