# run-time dependencies
select BR2_PACKAGE_DADO
select BR2_PACKAGE_LUA_COAT
+ depends on BR2_PACKAGE_LSQLITE3 || BR2_PACKAGE_LUASQL_SQLITE3
help
An ORM for lua-Coat.
http://fperrad.github.io/lua-CoatPersistent/
+
+comment "lua-coatpersistent needs lsqlite3 or luasql-sqlite3"
+ depends on !BR2_PACKAGE_LSQLITE3 && !BR2_PACKAGE_LUASQL_SQLITE3
#
################################################################################
-LUA_COATPERSISTENT_VERSION_UPSTREAM = 0.2.0
-LUA_COATPERSISTENT_VERSION = $(LUA_COATPERSISTENT_VERSION_UPSTREAM)-1
+LUA_COATPERSISTENT_VERSION_UPSTREAM = 0.2.1
+ifeq ($(BR2_PACKAGE_LSQLITE3),y)
+LUA_COATPERSISTENT_VERSION = lsqlite3-$(LUA_COATPERSISTENT_VERSION_UPSTREAM)-1
+else
+LUA_COATPERSISTENT_VERSION = luasql-$(LUA_COATPERSISTENT_VERSION_UPSTREAM)-1
+endif
LUA_COATPERSISTENT_SUBDIR = lua-CoatPersistent-$(LUA_COATPERSISTENT_VERSION_UPSTREAM)
LUA_COATPERSISTENT_LICENSE = MIT
LUA_COATPERSISTENT_LICENSE_FILES = $(LUA_COATPERSISTENT_SUBDIR)/COPYRIGHT