New package: lua54-luarepl-0.10

This commit is contained in:
Luciogi 2024-07-12 18:01:48 +05:00 committed by John Zimmermann
parent 166e79cffb
commit 1d43119d8f
4 changed files with 56 additions and 0 deletions

1
srcpkgs/lua51-luarepl Symbolic link
View File

@ -0,0 +1 @@
lua54-luarepl

1
srcpkgs/lua52-luarepl Symbolic link
View File

@ -0,0 +1 @@
lua54-luarepl

1
srcpkgs/lua53-luarepl Symbolic link
View File

@ -0,0 +1 @@
lua54-luarepl

View File

@ -0,0 +1,53 @@
# Template file for 'lua54-luarepl'
pkgname=lua54-luarepl
version=0.10
revision=1
build_style=meta
hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
depends="lua54"
short_desc="Reusable REPL component for Lua, written in Lua"
maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
license="MIT"
homepage="https://github.com/hoelzro/lua-repl"
distfiles="https://github.com/hoelzro/lua-repl/archive/refs/tags/${version}.tar.gz"
checksum=55ba9f032bb4eb0e2e93dc66a368549bcf1a915bdd9f9a467eb778c3133c6373
_rockname=${pkgname#lua54-}
_rocksrel=1
_package() {
luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec"
echo /destdir/${pkgname}-${version}
sed -i -e "s|/destdir/${pkgname}-${version}||" "${PKGDESTDIR}/usr/bin/rep.lua"
mv "${PKGDESTDIR}/usr/bin/rep.lua" "${PKGDESTDIR}/usr/bin/rep.lua${1/./}"
}
do_install() {
_package 5.4
sed -i -e "s|lua5\.3|lua5\.4|" "${PKGDESTDIR}/usr/bin/rep.lua54"
vlicense COPYING
}
lua53-luarepl_package() {
depends="lua53"
pkg_install() {
_package 5.3
vlicense COPYING
}
}
lua52-luarepl_package() {
depends="lua52"
pkg_install() {
_package 5.2
vlicense COPYING
}
}
lua51-luarepl_package() {
depends="lua51"
pkg_install() {
_package 5.1
vlicense COPYING
}
}