Signed-off-by: Vanya Sergeev <vsergeev@gmail.com>
[ThomasDS: rewrap package/lua-periphery/Config.in]
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
(compile-tested on x86/glibc armel/uclibc)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
        source "package/lua-ev/Config.in"
        source "package/lua-messagepack/Config.in"
        source "package/lua-msgpack-native/Config.in"
+       source "package/lua-periphery/Config.in"
        source "package/lua-testmore/Config.in"
        source "package/luabitop/Config.in"
        source "package/luacrypto/Config.in"
 
--- /dev/null
+config BR2_PACKAGE_LUA_PERIPHERY
+       bool "lua-periphery"
+       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+       help
+         A library for GPIO, SPI, I2C, MMIO, and Serial peripheral I/O
+         interface access in userspace Linux with Lua.
+
+         https://github.com/vsergeev/lua-periphery
 
--- /dev/null
+################################################################################
+#
+# lua-periphery
+#
+################################################################################
+
+LUA_PERIPHERY_VERSION_UPSTREAM = 1.0.4
+LUA_PERIPHERY_VERSION = $(LUA_PERIPHERY_VERSION_UPSTREAM)-1
+LUA_PERIPHERY_SUBDIR = lua-periphery
+LUA_PERIPHERY_LICENSE = MIT
+LUA_PERIPHERY_LICENSE_FILES = $(LUA_PERIPHERY_SUBDIR)/LICENSE
+
+$(eval $(luarocks-package))