aboutsummaryrefslogtreecommitdiff
path: root/dev-lua/luazen/luazen-0.16.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/luazen/luazen-0.16.ebuild')
-rw-r--r--dev-lua/luazen/luazen-0.16.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-lua/luazen/luazen-0.16.ebuild b/dev-lua/luazen/luazen-0.16.ebuild
new file mode 100644
index 0000000..4b7a543
--- /dev/null
+++ b/dev-lua/luazen/luazen-0.16.ebuild
@@ -0,0 +1,55 @@
+#
+# ~~~ dev-lua/luazen
+#
+# ~~~ a compression & crypto library for lua
+#
+
+#
+# ~~~ metadata
+
+# portage info
+EAPI=8
+SLOT=0
+
+KEYWORDS="amd64"
+
+# info
+HOMEPAGE="https://github.com/philanc/luazen/"
+DESCRIPTION="A compression & crypto library for Lua"
+
+# package data
+SRC_URI="https://github.com/philanc/luazen/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+#
+# ~~~ dependencies
+
+# lua setup
+LUA_COMPAT=( lua5-{3..4} )
+
+inherit lua
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+DEPEND="${LUA_DEPS}"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+lua_src_compile() {
+ emake LUAINC="-I$(lua_get_include_dir)"
+ echo $(lua_get_cmod_dir)
+}
+
+src_compile() {
+ lua_foreach_impl lua_src_compile
+}
+
+lua_src_install() {
+ insinto $(lua_get_cmod_dir)
+
+ doins luazen.a
+ doins luazen.so
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+}