Files
haikuports/sys-auth/ykclient/ykclient-2.15.recipe
2018-08-10 08:17:37 +02:00

74 lines
1.5 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="2"
SOURCE_URI="https://developers.yubico.com/yubico-c-client/Releases/ykclient-$portVersion.tar.gz"
CHECKSUM_SHA256="f461cdefe7955d58bbd09d0eb7a15b36cb3576b88adbd68008f40ea978ea5016"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
ykclient$secondaryArchSuffix = $portVersion
cmd:ykclient$secondaryArchSuffix = $portVersion
lib:libykclient$secondaryArchSuffix = 3.6.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
"
PROVIDES_devel="
ykclient${secondaryArchSuffix}_devel = $portVersion
devel:libykclient$secondaryArchSuffix = 3.6.0 compat >= 0
"
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 ./configure --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
}