diff --git a/srcpkgs/lua51-linenoise b/srcpkgs/lua51-linenoise new file mode 120000 index 00000000000..f544b8348c8 --- /dev/null +++ b/srcpkgs/lua51-linenoise @@ -0,0 +1 @@ +lua54-linenoise \ No newline at end of file diff --git a/srcpkgs/lua52-linenoise b/srcpkgs/lua52-linenoise new file mode 120000 index 00000000000..f544b8348c8 --- /dev/null +++ b/srcpkgs/lua52-linenoise @@ -0,0 +1 @@ +lua54-linenoise \ No newline at end of file diff --git a/srcpkgs/lua53-linenoise b/srcpkgs/lua53-linenoise new file mode 120000 index 00000000000..f544b8348c8 --- /dev/null +++ b/srcpkgs/lua53-linenoise @@ -0,0 +1 @@ +lua54-linenoise \ No newline at end of file diff --git a/srcpkgs/lua54-linenoise/template b/srcpkgs/lua54-linenoise/template new file mode 100644 index 00000000000..8505d1c3334 --- /dev/null +++ b/srcpkgs/lua54-linenoise/template @@ -0,0 +1,49 @@ +# Template file for 'lua54-linenoise' +pkgname=lua54-linenoise +version=0.9 +revision=1 +hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54" +makedepends="lua51-devel lua52-devel lua53-devel lua54-devel" +depends="lua54" +short_desc="Bindings for the linenoise command line library" +maintainer="Luciogi " +license="MIT" +homepage="https://github.com/hoelzro/lua-linenoise" +distfiles="https://github.com/hoelzro/lua-linenoise/archive/refs/tags/${version}.tar.gz" +checksum=cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c + +_rockname=${pkgname#lua54-} +_rocksrel=1 +_package() { + luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \ + make --deps-mode=none --no-manifest "${_rockname}-${version}-${_rocksrel}.rockspec" +} + +do_install() { + _package 5.4 + vlicense COPYING +} + +lua53-linenoise_package() { + depends="lua53" + pkg_install() { + _package 5.3 + vlicense COPYING + } +} + +lua52-linenoise_package() { + depends="lua52" + pkg_install() { + _package 5.2 + vlicense COPYING + } +} + +lua51-linenoise_package() { + depends="lua51" + pkg_install() { + _package 5.1 + vlicense COPYING + } +}