rockspec_format = "3.0"
package = "luatex"
version = "0.3.12-1"

description = {
	summary = "LuaTeX for plainTeX",
	detailed = "See https://github.com/ustctug/texrocks",
	license = "GPL-3.0",
	homepage = "https://www.luatex.org/",
	maintainer = "Wu",
	labels = {
		"texmf",
	},
}

dependencies = {
	"lua >= 5.1",
	"amsfonts >= 3.04",
	"texrocks >= 0.3.12",
}

build_dependencies = {
	"unicode-data >= 1.18",
	"tex-ini-files >= 2025.02.09",
	"amsfonts >= 3.04",
	"texrocks >= 0.3.12",
	"etex >= 2.1",
}

source = {
	url = "https://github.com/ustctug/texrocks/archive/0.3.12.zip",
	dir = "texrocks-0.3.12/packages/luatex",
}

deploy = {
	wrap_bin_scripts = false,
}

build = {
	type = "command",
	build_command = "bin/luatex --ini --interaction=nonstopmode luatex.ini",
	install = {
		bin = {
			luatex = "bin/luatex",
		},
		conf = {
			["../web2c/luahbtex/luatex.fmt"] = "luatex.fmt",
		},
	},
}
