forked from Shden/sunwait
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (35 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# To build, pull the sunwait repository into the "package/" subdirectory in the OpenWrt SDK,
# then run "scripts/feeds install libpthread" and finally "make V=s".
# This will create ./bin/ar71xx/packages/base/sunwait_1.0_ar71xx.ipk (depending on your architecture)
#
include $(TOPDIR)/rules.mk
PKG_NAME:=sunwait
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
PKG_BUILD_DEPENDS:= +libpthread
define Package/sunwait
SUBMENU:=Utilities
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Calculate sunrise and sunset, as well as civil, nautical, and astronomical twilights
URL:=https://github.com/probonopd/sunwait
# DEPENDS:= +libpthread
endef
define Package/sunwait/description
Calculate sunrise and sunset, as well as civil, nautical, and astronomical twilights.
Has features that make it useful for home automation tasks.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
endef
define Package/sunwait/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sunwait $(1)/usr/bin/sunwait
endef
$(eval $(call BuildPackage,sunwait))