mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
67 lines
1.5 KiB
Bash
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
|
|
}
|