76 lines
1.6 KiB
Bash
76 lines
1.6 KiB
Bash
SUMMARY="Low level C SDK for the Yubico YubiKey authentication device"
|
|
DESCRIPTION="C library for manipulating Yubico YubiKey One-Time Passwords \
|
|
(OTPs)"
|
|
HOMEPAGE="https://developers.yubico.com/yubico-c/"
|
|
COPYRIGHT="2008-2015 Yubico AB"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="6"
|
|
SOURCE_URI="https://developers.yubico.com/yubico-c/Releases/libyubikey-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="04edd0eb09cb665a05d808c58e1985f25bb7c5254d2849f36a0658ffc51c3401"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libyubikey$secondaryArchSuffix = $portVersion
|
|
cmd:modhex$secondaryArchSuffix = $portVersion
|
|
cmd:ykgenerate$secondaryArchSuffix = $portVersion
|
|
cmd:ykparse$secondaryArchSuffix = $portVersion
|
|
lib:libyubikey$secondaryArchSuffix = 0.1.7 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libusb_1.0$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libyubikey${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libyubikey$secondaryArchSuffix = 0.1.7 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
libyubikey$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libusb_1.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:diff
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure --disable-dependency-tracking
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libyubikey.la
|
|
|
|
prepareInstalledDevelLib libyubikey
|
|
fixPkgconfig
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $manDir
|
|
fi
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|