#!/bin/sh

name="mboxgrep"
title="mboxgrep"
package="mboxgrep"
version="0.7.5"
build="1"
noarch="n"
build_info="Standard build."

info="Displays e-mail messages matching a pattern."
info_pl="Wyświetla wiadomości e-mail pasujące do wzorca."
desc="mboxgrep is a small, non-interactive utility that scans mail
folders for messages matching regular expressions. It supports
basic and extended POSIX regular expressions. Perl-style regular
expressions are supported as well, if mboxgrep is linked with
PCRE library. Found messages can be either displayed on standard
output, counted, deleted, piped to a specified command, or copied
to another mailbox. It can read and write a variety of folder
formats: mbox folders, either plain or compressed; MH folders;
nnml and nnmh folders used by Gnus; qmail-style maildirs."
desc_pl="mboxgrep jest małym, nieinteraktywnym narzędziem, które skanuje
skrzynki pocztowe i wyszukuje wiadomości pasujące do określonych
wyrażeń regularnych. Obsługuje zarówno podstawowe, jak i
posiksowe wyrażenia. Również wyrażenia w stylu Perla są
obsługiwane, jeśli mboxgrep jest skonsolidowany z biblioteką
PCRE. Znalezione wiadomości mogą być wyświetlane na standardowe
wyjście, zliczane, usuwane, przesyłane do innego programu, lub
kopiowane do innej skrzynki. Może czyteć i zapisywać w wielu
formatach skrzynek: mbox (czysty lub skomresowany), MH, nnml i
nnmh używane przez Gnusa, oraz qmailowy Maildir."
category="tools/text"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="AUTHORS,ChangeLog,NEWS,README,TODO,mboxgrep.lsm"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source ftp://ftp.sf.net/pub/sourceforge/$name/$name-$version.tar.gz

apply_patch mboxgrep-cflags.pw.patch

configure_option --prefix=/usr
install_option prefix=$pkg_main/usr

parent_package="$package"
write_info main

cd $src1

do_configure
do_make
do_install

make_docs

make_package main

clean_up
