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="https://gnupg.org/"
COPYRIGHT="1998-2018 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="4"
SOURCE_URI="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-$portVersion.tar.bz2"
CHECKSUM_SHA256="c9462f17e651b6507848c08c430c791287cd75491f8b5a8b50c6ed46b12678ba"
PATCHES="gnupg-$portVersion.patchset"

ARCHITECTURES="!x86_gcc2"

PROVIDES="
	gnupg = $portVersion
	cmd:gpg = $portVersion
	cmd:gpg_zip = $portVersion
	cmd:gpgsplit = $portVersion
	cmd:gpgv = $portVersion
	"
REQUIRES="
	haiku
	lib:libcurl
	lib:libiconv
	lib:libintl
	lib:libreadline
	lib:libssl
	lib:libusb_0.1
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libcurl
	devel:libiconv
	devel:libintl
	devel:libreadline
	devel:libusb_0.1
	devel:libz
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:gcc
	cmd:libtoolize
	cmd:make
	"

BUILD()
{
	autoreconf -vfi
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	make check
}
