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.

47 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ykclient
  3. PKG_VERSION:=2.15
  4. PKG_RELEASE:=2
  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. include $(INCLUDE_DIR)/package.mk
  13. define Package/ykclient
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. TITLE:=The Yubico yubikey c client library
  17. URL:=https://developers.yubico.com/yubico-c-client/
  18. DEPENDS:=curl
  19. endef
  20. define Package/ykclient/description
  21. YubiKey C Client Library (libykclient)
  22. endef
  23. define Build/InstallDev
  24. $(INSTALL_DIR) $(STAGING_DIR)/usr/include
  25. $(CP) $(PKG_BUILD_DIR)/ykclient*.h $(STAGING_DIR)/usr/include
  26. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  27. $(CP) $(PKG_BUILD_DIR)/.libs/libykclient.so* $(STAGING_DIR)/usr/lib
  28. endef
  29. CONFIGURE_ARGS += \
  30. --enable-shared \
  31. --disable-static
  32. define Package/ykclient/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykclient $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_BUILD_DIR)/.libs/libykclient.so* $(1)/usr/lib
  37. endef
  38. $(eval $(call BuildPackage,ykclient))