SUMMARY="GnuPG is 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/"
SRC_URI="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.16.tar.bz2"
CHECKSUM_SHA256="7b3b748e6aaa338092a0b26b1730cd9355765b55e3684f58dd70f9a1b00f4a2f"
REVISION="1"
LICENSE="GNU GPL v3"
COPYRIGHT="1998-2010 Free Software Foundation, Inc."

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

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 >= $haikuVersion
	lib:libz
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:autoconf
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:make
	"

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

INSTALL()
{
	make install
}

TEST()
{
	make check
}
