kenzok8-package/libcron/Makefile
2022-05-12 22:38:22 +08:00

47 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=libcron
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/PerMalmberg/libcron.git
PKG_SOURCE_DATE:=2021-12-20
PKG_SOURCE_VERSION:=5c8de082c16fb0a6dfa3902aa30ec0b9063705de
PKG_MIRROR_HASH:=80e1454bec33a46c5a37e01392a4e6e1b8c242bfef446903c5da3c5c2e7b9565
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libcron
SECTION:=lib
CATEGORY:=Libraries
URL:=https://github.com/PerMalmberg/libcron
TITLE:=A C++ scheduling library using cron formatting
DEPENDS:=+libstdcpp
endef
define Package/libcron/description
Libcron offers an easy to use API to add callbacks with corresponding
cron-formatted strings.
endef
CMAKE_OPTIONS+= -DBUILD_SHARED_LIBS=ON
define Package/libcron/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblibcron.so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcron))