mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
82 lines
1.8 KiB
Bash
82 lines
1.8 KiB
Bash
SUMMARY="YubiKey Personalization package"
|
|
DESCRIPTION="A library and command line tool used to personalize \
|
|
(i.e., set a AES key) YubiKeys."
|
|
HOMEPAGE="https://developers.yubico.com/yubico-c-client/"
|
|
COPYRIGHT="2008-2017 Yubico AB"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="3"
|
|
SOURCE_URI="https://developers.yubico.com/yubikey-personalization/Releases/ykpers-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="cf333e133b551adf5963e0f5fe0566f4e397f9784d4c1b8fc56b9d2ebcf982ad"
|
|
SOURCE_DIR="ykpers-$portVersion"
|
|
|
|
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libykpers$secondaryArchSuffix = $portVersion
|
|
cmd:ykchalresp$secondaryArchSuffix = $portVersion
|
|
cmd:ykinfo$secondaryArchSuffix = $portVersion
|
|
cmd:ykpersonalize$secondaryArchSuffix = $portVersion
|
|
lib:libykpers_1$secondaryArchSuffix = 1.18.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libjson_c$secondaryArchSuffix
|
|
lib:libusb_1.0$secondaryArchSuffix
|
|
lib:libyubikey$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libykpers${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libykpers_1$secondaryArchSuffix = 1.18.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
libykpers$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libjson_c$secondaryArchSuffix
|
|
devel:libusb_1.0$secondaryArchSuffix
|
|
devel:libyubikey$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libykpers-1.la
|
|
|
|
prepareInstalledDevelLib libykpers-1
|
|
fixPkgconfig
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $manDir
|
|
fi
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|