0
0
Fork 0
haikuports/app-crypt/paperkey/paperkey-1.4.recipe

67 lines
1.5 KiB
Bash

SUMMARY="A tool to backup/restore OpenPGP keys to/from printed paper"
DESCRIPTION="Paperkey extracts the secret bits from OpenPGP keys, to be printed \
on paper as a form of backup and allows it to be reintroduced to reconstruct the \
secret key if needed."
HOMEPAGE="http://www.jabberwocky.com/software/paperkey/"
COPYRIGHT="2007-2016 David Shaw"
LICENSE="GNU GPL v2"
REVISION="4"
SOURCE_URI="http://www.jabberwocky.com/software/paperkey/paperkey-$portVersion.tar.gz"
CHECKSUM_SHA256="e12bb0ec835127d12a922a8d60b3dfdb3ca8ee60bb5b4d15ae4cea85bbcf336f"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
paperkey$secondaryArchSuffix = $portVersion
cmd:paperkey$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
REQUIRES="$REQUIRES
lib:libcrypto$secondaryArchSuffix
"
fi
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
BUILD_REQUIRES="$BUILD_REQUIRES
devel:libcrypto$secondaryArchSuffix
"
fi
BUILD_PREREQUIRES="
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
runConfigure ./configure --with-openssl
make $jobArgs LIBS="-lcrypto"
else
runConfigure ./configure
make $jobArgs
fi
}
INSTALL()
{
make install
install -d $docDir
install -t $docDir AUTHORS NEWS README
}
TEST()
{
make check
}