2 # Copyright (C) 2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Frank Edelhaeuser
<mrpace2@gmail.com
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
17 PKG_MIRROR_HASH
:=1c25062e95064cda4866243ff6797ef597dd57260da559ca68129aa7a72a9cda
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
)
23 include $(INCLUDE_DIR
)/package.mk
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
>
35 define Package
/luai2c
/description
36 This is the Lua binding for I2C. It provides access to I2C slaves supported by the kernel.
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
46 $(eval
$(call BuildPackage
,luai2c
))