summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-09 01:15:32 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-09 01:15:32 +0100
commitc51dde87c2fc6d695b971ae6bfeb2f85c2ac2912 (patch)
treea918be21bf9ce527cef6aaee6c01d31f9d3dd918
parent1d3fc62af786ec1694cfe879e6f2abb4f50a6056 (diff)
downloadap01-c51dde87c2fc6d695b971ae6bfeb2f85c2ac2912.tar
ap01-c51dde87c2fc6d695b971ae6bfeb2f85c2ac2912.tar.gz
ap01-c51dde87c2fc6d695b971ae6bfeb2f85c2ac2912.tar.bz2
ap01-c51dde87c2fc6d695b971ae6bfeb2f85c2ac2912.tar.xz
ap01-c51dde87c2fc6d695b971ae6bfeb2f85c2ac2912.zip
...
-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))