SUMMARY="The GNU project's free implementation of the OpenPGP standard"
DESCRIPTION="GnuPG is the GNU project's complete and free implementation of \
the OpenPGP standard as defined by RFC4880 . GnuPG allows to encrypt and sign \
your data and communication, features a versatile key management system as \
well as access modules for all kinds of public key directories. GnuPG, also \
known as GPG, is a command line tool with features for easy integration with \
other applications."
HOMEPAGE="http://www.gnupg.org/"
SOURCE_URI="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.11.tar.bz2"
CHECKSUM_SHA256="d18ceeac16e554a501170b9bfde611625252d0fe9448685a69c93bf149ee6ef6"
REVISION="1"
LICENSE="GNU GPL v3"
COPYRIGHT="1998-2010 Free Software Foundation, Inc."

ARCHITECTURES="x86  x86_gcc2"

PROVIDES="gnupg = $portVersion
	cmd:gpg = $portVersion compat >= 1.4
	cmd:gpg_zip = $portVersion compat >= 1.4
	cmd:gpgsplit = $portVersion compat >= 1.4
	cmd:gpgv = $portVersion compat >= 1.4
	"
REQUIRES="
	haiku
	lib:libz
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:autoconf
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:make
	"
PATCHES="gnupg-1.4.11.patch"

BUILD()
{
	libtoolize --force --copy --install
	autoconf
	runConfigure ./configure 
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	make check
}
