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