summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 14 insertions, 14 deletions
diff --git a/flake.nix b/flake.nix
index ab4a0ef..fc9dcc4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -120,32 +120,32 @@
120 include $(INCLUDE_DIR)/package.mk 120 include $(INCLUDE_DIR)/package.mk
121 121
122 define Package/sunwait 122 define Package/sunwait
123 SECTION:=util 123 SECTION:=util
124 CATEGORY:=Utilities 124 CATEGORY:=Utilities
125 TITLE:=Sunwait 125 TITLE:=Sunwait
126 URL:=https://github.com/risacher/sunwait 126 URL:=https://github.com/risacher/sunwait
127 DEPENDS:=+libstdcpp +libc 127 DEPENDS:=+libstdcpp +libc
128 endef 128 endef
129 129
130 define Package/sunwait/description 130 define Package/sunwait/description
131 Wait until the specified solar event 131 Wait until the specified solar event
132 endef 132 endef
133 133
134 define Build/Prepare 134 define Build/Prepare
135 cp -r ${inputs.sunwait} . 135 cp -r ${inputs.sunwait} .
136 cd $(basename ${inputs.sunwait}) 136 cd $(basename ${inputs.sunwait})
137 endef 137 endef
138 138
139 define Build/Compile 139 define Build/Compile
140 $(TARGET_CC) $(TARGET_CPPFLAGS) -o $(PKG_BUILD_DIR)/sunwait.o -c $(PKG_BUILD_DIR)/sunwait.cpp 140 $(TARGET_CC) $(TARGET_CPPFLAGS) -o $(PKG_BUILD_DIR)/sunwait.o -c $(PKG_BUILD_DIR)/sunwait.cpp
141 $(TARGET_CC) $(TARGET_CPPFLAGS) -o $(PKG_BUILD_DIR)/sunriset.o -c $(PKG_BUILD_DIR)/sunriset.cpp 141 $(TARGET_CC) $(TARGET_CPPFLAGS) -o $(PKG_BUILD_DIR)/sunriset.o -c $(PKG_BUILD_DIR)/sunriset.cpp
142 $(TARGET_CC) $(TARGET_CPPFLAGS) -o $(PKG_BUILD_DIR)/print.o -c $(PKG_BUILD_DIR)/print.cpp 142 $(TARGET_CC) $(TARGET_CPPFLAGS) -o $(PKG_BUILD_DIR)/print.o -c $(PKG_BUILD_DIR)/print.cpp
143 $(TARGET_CC) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/$1 $(PKG_BUILD_DIR)/sunwait.o $(PKG_BUILD_DIR)/sunriset.o $(PKG_BUILD_DIR)/print.o -lm -lstdc++ 143 $(TARGET_CC) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/$1 $(PKG_BUILD_DIR)/sunwait.o $(PKG_BUILD_DIR)/sunriset.o $(PKG_BUILD_DIR)/print.o -lm -lstdc++
144 endef 144 endef
145 145
146 define Package/sunwait/install 146 define Package/sunwait/install
147 $(INSTALL_DIR) $(1)/usr/bin 147 $(INSTALL_DIR) $(1)/usr/bin
148 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sunwait $(1)/usr/bin/ 148 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sunwait $(1)/usr/bin/
149 endef 149 endef
150 150
151 $(eval $(call BuildPackage,sunwait)) 151 $(eval $(call BuildPackage,sunwait))