libtomcrypt, new recipe (#7715)

This commit is contained in:
Schrijvers Luc
2023-01-01 13:54:46 +01:00
committed by GitHub
parent 10368b88de
commit 201ce39b80
2 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
SUMMARY="A fairly comprehensive, modular and portable cryptographic toolkit"
DESCRIPTION="LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit \
that provides developers with a vast array of well known published block ciphers, one-way hash \
functions, chaining modes, pseudo-random number generators, public key cryptography and a \
plethora of other routines. "
HOMEPAGE="https://www.libtom.net/LibTomCrypt/"
COPYRIGHT="2012 Samual Neves
2008 Cryptico A/S"
LICENSE="Public Domain
WTFPL v2"
REVISION="1"
SOURCE_URI="https://github.com/libtom/libtomcrypt/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="d870fad1e31cb787c85161a8894abb9d7283c2a654a9d3d4c6d45a1eba59952c"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.0.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libtomcrypt$secondaryArchSuffix = $portVersion
lib:libtomcrypt$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libtomcrypt${secondaryArchSuffix}_devel = $portVersion
devel:libtomcrypt$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libtomcrypt$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cc$secondaryArchSuffix
cmd:libtool$secondaryArchSuffix
cmd:make
"
BUILD()
{
true
}
INSTALL()
{
export LIBPATH=$libDir
export INCPATH=$includeDir
make -f makefile.shared IGNORE_SPEED=1 install
rm $libDir/libtomcrypt.{a,la}
prepareInstalledDevelLibs libtomcrypt
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make $jobArgs -f makefile.shared IGNORE_SPEED=1 test
./test
}

View File

@@ -0,0 +1,29 @@
LibTomCrypt is licensed under DUAL licensing terms.
Choose and use the license of your needs.
[LICENSE #1]
LibTomCrypt is public domain. As should all quality software be.
Tom St Denis
[/LICENSE #1]
[LICENSE #2]
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
[/LICENSE #2]