package/sunwait: new package
PATCH 1/1 package/sunwait: new package
Sunwait calculates sunrise or sunset times with civil, nautical, astronomical and custom twilights.
Signed-off-by Angelo Compagnucci <[email protected]>
--- DEVELOPERS | 1 + package/Config.in | 1 + package/sunwait/Config.in | 7 +++++++ package/sunwait/sunwait.hash | 3 +++ package/sunwait/sunwait.mk | 20 ++++++++++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 package/sunwait/Config.in create mode 100644 package/sunwait/sunwait.hash create mode 100644 package/sunwait/sunwait.mk
DEVELOPERS +1 -0
@@ -185,6 +185,7 @@ F: package/python-pillow/ F: package/python-pydal/ F: package/python-web2py/ F: package/sshguard/ +F: package/sunwait/ F: package/sysdig/ N: Anisse Astier <[email protected]>
package/Config.in +1 -0
@@ -1865,6 +1865,7 @@ menu "Miscellaneous" source "package/qemu/Config.in" source "package/qpdf/Config.in" source "package/shared-mime-info/Config.in" + source "package/sunwait/Config.in" source "package/taskd/Config.in" source "package/wine/Config.in" source "package/xutil_util-macros/Config.in"
package/sunwait/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_SUNWAIT + bool "sunwait" + help + Sunwait calculates sunrise or sunset times with civil, + nautical, astronomical and custom twilights. + + https://github.com/risacher/sunwait
package/sunwait/sunwait.hash new file +3 -0
@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 ef26ed05882d5286a64a37c4044f99b877cc54f58a46f0e37ca60c93398df910 sunwait-7326b53e5406c7ebd552ae6dc0fc659252a18e7f.tar.gz +sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 LICENSE
package/sunwait/sunwait.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# sunwait +# +################################################################################ + +SUNWAIT_VERSION = 7326b53e5406c7ebd552ae6dc0fc659252a18e7f +SUNWAIT_SITE = $(call github,risacher,sunwait,$(SUNWAIT_VERSION)) +SUNWAIT_LICENSE = GPL-3.0 +SUNWAIT_LICENSE_FILES = LICENSE + +define SUNWAIT_BUILD_CMDS + $(MAKE) C=$(TARGET_CC) -C $(@D) all +endef + +define SUNWAIT_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/sunwait $(TARGET_DIR)/usr/bin/ +endef + +$(eval $(generic-package))
Signature · 1 line
2.17.1
PATCH 1/1 package/sunwait: new package
package/sunwait/Config.in line 2
Quoted 8 lines · On Fri, 11 Oct 2019 23:32:19 +0200 Angelo Compagnucci…
package/sunwait/Config.in new file +2
-0@@ -0,0 +1,7 @@ +config BR2_PACKAGE_SUNWAIT + bool "sunwait"
This packages uses C++, so I've added a BR2_INSTALL_LIBSTDCPP dependency.
Quoted 23 lines
package/sunwait/Config.in new file +5
-0+ help + Sunwait calculates sunrise or sunset times with civil, + nautical, astronomical and custom twilights. + + https://github.com/risacher/sunwaitpackage/sunwait/sunwait.hash new file +3
-0@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 ef26ed05882d5286a64a37c4044f99b877cc54f58a46f0e37ca60c93398df910 sunwait-7326b53e5406c7ebd552ae6dc0fc659252a18e7f.tar.gz +sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 LICENSEpackage/sunwait/sunwait.mk new file +3
-0@@ -0,0 +1,20 @@ +################################################################################ +# +# sunwait
package/sunwait/sunwait.mk line 13
Quoted 10 lines
package/sunwait/sunwait.mk new file +10
-0+# +################################################################################ + +SUNWAIT_VERSION = 7326b53e5406c7ebd552ae6dc0fc659252a18e7f +SUNWAIT_SITE = $(call github,risacher,sunwait,$(SUNWAIT_VERSION)) +SUNWAIT_LICENSE = GPL-3.0 +SUNWAIT_LICENSE_FILES = LICENSE + +define SUNWAIT_BUILD_CMDS + $(MAKE) C=$(TARGET_CC) -C $(@D) all
I've improved this a bit to pass proper CFLAGS and LDFLAGS, and to use CXX to build, since it's using C++ headers and was linking with -lstdc++.
package/sunwait/sunwait.mk line 17
Quoted 4 lines
package/sunwait/sunwait.mk new file +4
-0+endef + +define SUNWAIT_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/sunwait $(TARGET_DIR)/usr/bin/
Changed to use a full destination path.
Applied with those changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com