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-$portVersion.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
	lib:libcurl
	lib:libiconv
	lib:libintl
	lib:libreadline
	lib:libusb_0.1
	lib:libz
	"
BUILD_REQUIRES="
	devel:libcurl
	devel:libiconv
	devel:libintl
	devel:libreadline
	devel:libusb_0.1
	devel:libz
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:autoconf
	cmd:bison
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:make
	cmd:msgfmt
	cmd:perl
	cmd:tar
	"

PATCHES="gnupg-1.4.16.patchset"

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

INSTALL()
{
	make install
}

TEST()
{
	make check
}
