Merge pull request #4820 from dibdot/adblock
[feed/packages.git] / lang / luai2c / Makefile
1 #
2 # Copyright (C) 2017 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=luai2c
11 PKG_VERSION:=1.1.2
12 PKG_RELEASE:=4
13 PKG_MAINTAINER:=Frank Edelhaeuser <mrpace2@gmail.com>
14 PKG_LICENSE:=MIT
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_MIRROR_HASH:=1c25062e95064cda4866243ff6797ef597dd57260da559ca68129aa7a72a9cda
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_URL:=https://github.com/mrpace2/lua-i2c.git
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/luai2c
26 SUBMENU:=Lua
27 SECTION:=lang
28 CATEGORY:=Languages
29 TITLE:=Lua I2C binding
30 URL:=https://github.com/mrpace2/lua-i2c/
31 DEPENDS:=+liblua +kmod-i2c-core
32 MAINTAINER:=Frank Edelhaeuser <mrpace2@gmail.com>
33 endef
34
35 define Package/luai2c/description
36 This is the Lua binding for I2C. It provides access to I2C slaves supported by the kernel.
37 endef
38
39 define Package/luai2c/install
40 $(INSTALL_DIR) $(1)/usr/lib/lua
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/i2c.so $(1)/usr/lib/lua
42 $(INSTALL_DIR) $(1)/usr/lib/lua/i2c
43 $(INSTALL_DATA) $(PKG_BUILD_DIR)/examples/* $(1)/usr/lib/lua/i2c
44 endef
45
46 $(eval $(call BuildPackage,luai2c))