<commit_before>include $(TOPDIR)/rules.mk

PKG_NAME:=commotiond
PKG_VERSION:=master
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/opentechinstitute/commotiond.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_VERSION)

PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

SERVAL_VERSION:=commotion-wireless

TARGET_CFLAGS += -I$(BUILD_DIR)/serval-dna-$(SERVAL_VERSION) -I$(BUILD_DIR)/serval-dna-$(SERVAL_VERSION)/nacl/include -I$(BUILD_DIR)/serval-dna-$(SERVAL_VERSION)/sqlite-amalgamation-3070900
CMAKE_OPTIONS+=-DDEBUG:Bool=Off -DOPENWRT:Bool=On

define Package/libcommotion
  SECTION:=commotion
  CATEGORY:=Commotion
  SUBMENU:=Libraries
  DEPENDS:=+librt +libserval-dna
  TITLE:=libcommotion
  URL:=https://commotionwireless.net/
endef

define Package/libcommotion/description
  An embedded library and API for managing mesh networks.
endef

define Package/libcommotion/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/libcommotion.so $(1)/usr/lib
endef

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/commotion.h $(1)/usr/include<commit_msg>Disable unit tests in OpenWRT build.<commit_after>include $(TOPDIR)/rules.mk

PKG_NAME:=commotiond
PKG_VERSION:=master
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/opentechinstitute/commotiond.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_VERSION)

PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

SERVAL_VERSION:=commotion-wireless

TARGET_CFLAGS += -I$(BUILD_DIR)/serval-dna-$(SERVAL_VERSION) -I$(BUILD_DIR)/serval-dna-$(SERVAL_VERSION)/nacl/include -I$(BUILD_DIR)/serval-dna-$(SERVAL_VERSION)/sqlite-amalgamation-3070900
CMAKE_OPTIONS+=-DDEBUG:Bool=Off -DOPENWRT:Bool=On -DTEST:Bool=Off

define Package/libcommotion
  SECTION:=commotion
  CATEGORY:=Commotion
  SUBMENU:=Libraries
  DEPENDS:=+librt +libserval-dna
  TITLE:=libcommotion
  URL:=https://commotionwireless.net/
endef

define Package/libcommotion/description
  An embedded library and API for managing mesh networks.
endef

define Package/libcommotion/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/libcommotion.so $(1)/usr/lib
endef

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/commotion.h $(1)/usr/include
{'fraction_non_alphanumeric': 0.14907302307983353, 'fraction_numerical': 0.009080590238365494, 'mean_word_length': 7.501607717041801, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '638358', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1018, 'n_words': 123}