libsodium: bump version and remove SECONDARY_ARCH (#1214)

This commit is contained in:
Calvin Hill
2017-03-13 16:43:11 +00:00
committed by diversys
parent 1d94558d08
commit 399e5b3932
2 changed files with 10 additions and 34 deletions

View File

@@ -0,0 +1,69 @@
SUMMARY="A modern, easy-to-use software library for cryptographic standards"
DESCRIPTION="Sodium is a portable, cross-compilable, installable, packageable \
fork of NaCl, with a compatible API, and an extended API to improve usability \
even further.
Its goal is to provide all of the core operations needed to build higher-level \
cryptographic tools.
The design choices emphasize security, and \"magic constants\" have clear \
rationales.
Despite the emphasis on high security, primitives are faster across-the-board \
than most implementations of the NIST standards."
HOMEPAGE="https://github.com/jedisct1/libsodium"
COPYRIGHT="2013-2016 Frank Denis"
LICENSE="ISC"
REVISION="4"
SOURCE_URI="https://download.libsodium.org/libsodium/releases/libsodium-$portVersion.tar.gz"
CHECKSUM_SHA256="b8648f1bb3a54b0251cf4ffa4f0d76ded13977d4fa7517d988f4c902dd8e2f95"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
libsodium = $portVersion
lib:libsodium = 18.1.1 compat >= 18
"
REQUIRES="
haiku
"
PROVIDES_devel="
libsodium_devel = $portVersion
devel:libsodium = 18.1.1 compat >= 18
"
REQUIRES_devel="
libsodium == $portVersion base
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:automake
cmd:awk
cmd:gcc
cmd:libtoolize
cmd:make
"
BUILD()
{
runConfigure ./configure --disable-ssp
make
}
INSTALL()
{
make install
# remove libtool file
rm -f $libDir/libsodium.la
prepareInstalledDevelLib libsodium
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}