1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_URL
:=https
://github.com
/sartura
/uci2.git
9 PKG_SOURCE_DATE
:=2021-07-12
10 PKG_SOURCE_VERSION
:=56064182acdd8fa522abab67fdbaa10c2a28165c
11 PKG_MIRROR_HASH
:=94059a5cf110ecc04cfb9a8ffc160f9bd6a03518d4c4b195500d8eff001be9aa
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_DATE
).
tar.gz
14 PKG_MAINTAINER
:=Jakov Petrina
<jakov.petrina@sartura.hr
>
15 PKG_LICENSE
:=BSD-3-Clause
16 PKG_LICENSE_FILES
:=LICENSE
18 include $(INCLUDE_DIR
)/package.mk
19 include $(INCLUDE_DIR
)/cmake.mk
21 define Package
/libuci2
/Default
22 TITLE
:=AST-based C parser library for UCI
23 URL
:=https
://github.com
/sartura
/uci2
26 define Package
/libuci2
27 $(call Package
/libuci2
/Default
)
32 define Package
/libuci2
/description
33 UCI2 is a C library that provides an alternative UCI parser with an Abstract
34 Syntax Tree
(AST
) representation of configuration files.
40 define Build
/InstallDev
41 $(INSTALL_DIR
) $(1)/usr
/include
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/{libuci2
,uci2_ast
}.h
$(1)/usr
/include/
43 $(INSTALL_DIR
) $(1)/usr
/lib
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuci2.so
$(1)/usr
/lib
/
47 define Package
/libuci2
/install
48 $(INSTALL_DIR
) $(1)/usr
/lib
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuci2.so
$(1)/usr
/lib
/
52 $(eval
$(call BuildPackage
,libuci2
))