mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
uci2: Update to 2.0.0
Simplify Makefile while at it. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
committed by
Robert Marko
parent
f872c8970e
commit
e3d582c0ae
@@ -1,49 +1,38 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=uci2
|
PKG_NAME:=uci2
|
||||||
PKG_VERSION:=1.0
|
PKG_VERSION:=2.0.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://github.com/sartura/uci2.git
|
PKG_SOURCE_URL:=https://github.com/sartura/uci2.git
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_DATE:=2021-07-12
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
||||||
PKG_SOURCE_VERSION:=56064182acdd8fa522abab67fdbaa10c2a28165c
|
PKG_MIRROR_HASH:=bc449797b67dee8cfa60673d5440486dbb7422797691e8fa8a01353dd4e2d77a
|
||||||
PKG_MIRROR_HASH:=94059a5cf110ecc04cfb9a8ffc160f9bd6a03518d4c4b195500d8eff001be9aa
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_DATE).tar.gz
|
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jakov Petrina <jakov.petrina@sartura.hr>
|
PKG_MAINTAINER:=Jakov Petrina <jakov.petrina@sartura.hr>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
CMAKE_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
define Package/libuci2/Default
|
define Package/libuci2
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
TITLE:=AST-based C parser library for UCI
|
TITLE:=AST-based C parser library for UCI
|
||||||
URL:=https://github.com/sartura/uci2
|
URL:=https://github.com/sartura/uci2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libuci2
|
|
||||||
$(call Package/libuci2/Default)
|
|
||||||
SECTION:=libs
|
|
||||||
CATEGORY:=Libraries
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/libuci2/description
|
define Package/libuci2/description
|
||||||
UCI2 is a C library that provides an alternative UCI parser with an Abstract
|
UCI2 is a C library that provides an alternative UCI parser with an
|
||||||
Syntax Tree (AST) representation of configuration files.
|
Abstract Syntax Tree (AST) representation of configuration files.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
-DENABLE_TESTS=OFF
|
-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
|
define Package/libuci2/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libuci2.so $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libuci2.so $(1)/usr/lib/
|
||||||
|
|||||||
Reference in New Issue
Block a user