diff --git a/srcpkgs/lua51-cassowary b/srcpkgs/lua51-cassowary new file mode 120000 index 00000000000..b1ab1c3518e --- /dev/null +++ b/srcpkgs/lua51-cassowary @@ -0,0 +1 @@ +lua54-cassowary \ No newline at end of file diff --git a/srcpkgs/lua52-cassowary b/srcpkgs/lua52-cassowary new file mode 120000 index 00000000000..b1ab1c3518e --- /dev/null +++ b/srcpkgs/lua52-cassowary @@ -0,0 +1 @@ +lua54-cassowary \ No newline at end of file diff --git a/srcpkgs/lua53-cassowary b/srcpkgs/lua53-cassowary new file mode 120000 index 00000000000..b1ab1c3518e --- /dev/null +++ b/srcpkgs/lua53-cassowary @@ -0,0 +1 @@ +lua54-cassowary \ No newline at end of file diff --git a/srcpkgs/lua54-cassowary/template b/srcpkgs/lua54-cassowary/template new file mode 100644 index 00000000000..3fb78474ef1 --- /dev/null +++ b/srcpkgs/lua54-cassowary/template @@ -0,0 +1,52 @@ +# Template file for 'lua54-cassowary' +pkgname=lua54-cassowary +version=2.3.2 +revision=1 +hostmakedepends="lua54 lua53 lua52 lua51 luarocks-lua54" +makedepends="lua54-devel lua53-devel lua52-devel lua51-devel" +depends="lua54 lua54-penlight" +short_desc="Cassowary constraint solver" +maintainer="Luciogi " +license="MIT" +homepage="https://github.com/sile-typesetter/lua-cassowary" +distfiles="https://github.com/sile-typesetter/cassowary.lua/archive/refs/tags/v${version}.tar.gz" +checksum=20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798 + +_rockname=${pkgname#lua54-} +_rocksrel=1 +_package() { + luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \ + make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec" +} + +do_install() { + _package 5.4 + vlicense LICENSE +} + +lua51-cassowary_package() { + build_style=meta + depends="lua51 lua51-penlight" + pkg_install() { + _package 5.1 + vlicense LICENSE + } +} + +lua52-cassowary_package() { + build_style=meta + depends="lua52 lua52-penlight" + pkg_install() { + _package 5.2 + vlicense LICENSE + } +} + +lua53-cassowary_package() { + build_style=meta + depends="lua53 lua53-penlight" + pkg_install() { + _package 5.3 + vlicense LICENSE + } +}