Files
haikuports/sys-auth/ykclient/ykclient-2.15.recipe
2023-04-24 17:09:10 +02:00

87 lines
1.8 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="Yubico C client library"
DESCRIPTION="YubiKey C Client Library (libykclient) is a C library used \
to validate an Yubikey OTP against Yubicos servers."
HOMEPAGE="https://developers.yubico.com/yubico-c-client/"
COPYRIGHT="2008-2015 Yubico AB"
LICENSE="BSD (2-clause)"
REVISION="4"
SOURCE_URI="https://developers.yubico.com/yubico-c-client/Releases/ykclient-$portVersion.tar.gz"
CHECKSUM_SHA256="f461cdefe7955d58bbd09d0eb7a15b36cb3576b88adbd68008f40ea978ea5016"
ARCHITECTURES="all ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="3.6.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
ykclient$secondaryArchSuffix = $portVersion
cmd:ykclient$commandSuffix = $portVersion
lib:libykclient$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
"
PROVIDES_devel="
ykclient${secondaryArchSuffix}_devel = $portVersion
devel:libykclient$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
ykclient$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcurl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:help2man
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
BUILD()
{
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--disable-static \
--disable-dependency-tracking
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libykclient.la
prepareInstalledDevelLib libykclient
fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $manDir
fi
packageEntries devel \
$developDir
}
TEST()
{
make check
}