summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bigclown-leds/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/bigclown-leds/Makefile b/bigclown-leds/Makefile
new file mode 100644
index 0000000..006083e
--- /dev/null
+++ b/bigclown-leds/Makefile
@@ -0,0 +1,36 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=bigclown-leds
+PKG_VERSION:=1.0.1
+PKG_RELEASE:=2
+PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
+
+GIT_HASH:=a1236a39e7842ed24b3a9c986dba177d02be5114
+PKG_SOURCE_URL:=https://git.cynerd.cz/bigclown-leds/snapshot/
+PKG_SOURCE:=$(PKG_NAME)-$(GIT_HASH).tar.gz
+PKG_HASH:=9bd59f33c78d1c56f691dd74ab9c16ad98cd1855caecacdc1724e89eec346f67
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(GIT_HASH)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/$(PKG_NAME)
+ TITLE:=BigCLown LEDs
+ DEPENDS:=+python3-paho-mqtt
+endef
+
+define Package/$(PKG_NAME)/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/bigclown-leds $(1)/usr/bin/bigclown-leds
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/bigclown-leds.init $(1)/etc/init.d/bigclown-leds
+endef
+
+define Build/Compile
+ true
+endef
+
+$(eval $(call BuildPackage,$(PKG_NAME)))