I'm reverting this commit, because it is pulling newer source code, but
without doing a new version bump. This results that users who already
installed this library on their router will have different package
content than users who installed it after the commit.
The another small reason is that commit subject - update revision is cryptic itself and should be more bulletproof like saying update to version 1.1
More details: https://github.com/openwrt/packages/pull/15990#issuecomment-870333695
This reverts commit e779323481
.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=uci2
|
|
PKG_VERSION:=1.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL:=https://github.com/sartura/uci2.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=24b7471a0aead99115c189f04236f5fe52492579
|
|
PKG_MIRROR_HASH:=ea8f4627163ce40f62393a87a0155869f034bb78c9f7fb644f18461cbdaf5333
|
|
|
|
PKG_MAINTAINER:=Jakov Petrina <jakov.petrina@sartura.hr>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libuci2/Default
|
|
TITLE:=AST-based C parser library for UCI
|
|
URL:=https://github.com/sartura/uci2
|
|
endef
|
|
|
|
define Package/libuci2
|
|
$(call Package/libuci2/Default)
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
endef
|
|
|
|
define Package/libuci2/description
|
|
UCI2 is a C library that provides an alternative UCI parser with an Abstract
|
|
Syntax Tree (AST) representation of configuration files.
|
|
endef
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DENABLE_TESTS=OFF
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/{libuci2,uci2_ast}.h $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libuci2.so $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libuci2/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libuci2.so $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libuci2))
|