You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ykclient
  3. PKG_VERSION:=2.15
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=ykclient-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://developers.yubico.com/yubico-c-client/Releases/
  7. PKG_HASH:=f461cdefe7955d58bbd09d0eb7a15b36cb3576b88adbd68008f40ea978ea5016
  8. PKG_MAINTAINER:=Stuart B. Wilkins <stuwilkins@mac.com>
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_LICENSE:=BSD-2-Clause
  11. PKG_BUILD_DEPENDS:=curl
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/ykclient-$(PKG_VERSION)
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/ykclient
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=The Yuibco yubikey c client library
  18. URL:=https://developers.yubico.com/yubico-c-client/
  19. DEPENDS:=curl
  20. endef
  21. define Package/ykclient/description
  22. YubiKey C Client Library (libykclient)
  23. endef
  24. define Build/InstallDev
  25. $(INSTALL_DIR) $(STAGING_DIR)/usr/include
  26. $(CP) $(PKG_BUILD_DIR)/ykclient*.h $(STAGING_DIR)/usr/include
  27. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  28. $(CP) $(PKG_BUILD_DIR)/.libs/libykclient.so* $(STAGING_DIR)/usr/lib
  29. endef
  30. CONFIGURE_ARGS += \
  31. --enable-shared \
  32. --disable-static
  33. define Package/ykclient/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykclient $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_BUILD_DIR)/.libs/libykclient.so* $(1)/usr/lib
  38. endef
  39. $(eval $(call BuildPackage,ykclient))