2 # Copyright (C) 2016 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
18 PKG_SOURCE_URL
:=https
://github.com
/mrpace2
/i2c-lua.git
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE_VERSION
:=$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=Lua I2C binding
29 URL
:=https
://github.com
/mrpace2
/i2c-lua
/
30 DEPENDS
:=+liblua
+kmod-i2c-core
31 MAINTAINER
:=Frank Edelhaeuser
<mrpace2@gmail.com
>
34 define Package
/luai2c
/description
35 This is the Lua binding for I2C. It provides access to I2C slaves supported by the kernel.
38 define Package
/luai2c
/install
39 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
40 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/i2c.so
$(1)/usr
/lib
/lua
41 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
/i2c
42 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/examples
/* $(1)/usr
/lib
/lua
/i2c
45 $(eval
$(call BuildPackage
,luai2c
))