summaryrefslogtreecommitdiff
path: root/bigclown-leds/Makefile
blob: 751493b810b16619bac6f020077fec2646c8132d (plain)
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
# 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:=1
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_DATA) $(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)))