oath-toolkit: add InstallDev section
authorThlv Alivs <zgmzzzz18@gmail.com>
Wed, 17 May 2023 15:17:12 +0000 (23:17 +0800)
committerTianling Shen <cnsztl@gmail.com>
Thu, 18 May 2023 07:18:35 +0000 (15:18 +0800)
This package seems to be missing an InstallDev section. Had a compile
failure for an application that needs to compile against liboath

Signed-off-by: Thlv Alivs <zgmzzzz18@gmail.com>
utils/oath-toolkit/Makefile

index ebee2ec711ee12ac2504a00b30ce17dfab02ce2c..3063d1fa660294d65ec53145bb4272523e056d37 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=oath-toolkit
 PKG_VERSION:=2.6.5
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SAVANNAH/oath-toolkit
@@ -44,6 +44,13 @@ define Package/oath-toolkit/description
        HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
 endef
 
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include/liboath
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
+endef
+
 define Package/oath-toolkit/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_DIR) $(1)/usr/lib