/
libyubikey-1.13.recipe
72 lines (61 loc) · 1.57 KB
/
libyubikey-1.13.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libusb$secondaryArchSuffix
"
PROVIDES_devel="
libyubikey${secondaryArchSuffix}_devel = $portVersion
devel:libyubikey$secondaryArchSuffix = 0.1.7
"
REQUIRES_devel="
libyubikey$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
lib:libcurl$secondaryArchSuffix
lib: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
}