Skip to content

Commit

Permalink
libyubikey: new recipe. (GCI 2016) (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-nazarie authored and fbrosson committed Dec 15, 2016
1 parent b7c7b75 commit 58be167
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions sys-auth/libyubikey/libyubikey-1.13.recipe
@@ -0,0 +1,72 @@
SUMMARY="Low level C SDK for the Yubico YubiKey authentication device"
DESCRIPTION="Low-level C software development kit for the Yubico YubiKey \
authentication device."
HOMEPAGE="https://developers.yubico.com/yubico-c/"
COPYRIGHT="2008-2015 Yubico AB"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://developers.yubico.com/yubico-c/Releases/libyubikey-$portVersion.tar.gz"
CHECKSUM_SHA256="04edd0eb09cb665a05d808c58e1985f25bb7c5254d2849f36a0658ffc51c3401"

ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
libyubikey$secondaryArchSuffix = $portVersion
cmd:modhex$secondaryArchSuffix = $portVersion
cmd:ykparse$secondaryArchSuffix = $portVersion
cmd:ykgenerate$secondaryArchSuffix = $portVersion
lib:libyubikey$secondaryArchSuffix = 0.1.7

This comment has been minimized.

Copy link
@korli

korli Dec 21, 2016

Contributor

It should be: lib:libyubikey$secondaryArchSuffix = 0.1.7 compat >= 0

"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libusb$secondaryArchSuffix
"

PROVIDES_devel="
libyubikey${secondaryArchSuffix}_devel = $portVersion
devel:libyubikey$secondaryArchSuffix = 0.1.7

This comment has been minimized.

Copy link
@korli

korli Dec 21, 2016

Contributor

It should be: devel:libyubikey$secondaryArchSuffix = 0.1.7 compat >= 0

"
REQUIRES_devel="
libyubikey$secondaryArchSuffix == $portVersion base
"

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
lib:libcurl$secondaryArchSuffix

This comment has been minimized.

Copy link
@korli

korli Dec 21, 2016

Contributor

it should be devel:libcurl$secondaryArchSuffix

lib:libusb$secondaryArchSuffix

This comment has been minimized.

Copy link
@korli

korli Dec 21, 2016

Contributor

it should be devel:libusb$secondaryArchSuffix

"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
"

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
}

0 comments on commit 58be167

Please sign in to comment.