From c9ec8fc08a4b529ce4e020942b1d99dca38138c0 Mon Sep 17 00:00:00 2001 From: ouboudah Date: Sun, 25 Oct 2026 10:50:01 +0100 Subject: [PATCH] premake5: update to v5.0.0. --- .../premake5/patches/cross-bootstrap.patch | 19 +++++++++++++++++++ srcpkgs/premake5/template | 19 ++++++++++++------- 2 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 srcpkgs/premake5/patches/cross-bootstrap.patch diff --git a/srcpkgs/premake5/patches/cross-bootstrap.patch b/srcpkgs/premake5/patches/cross-bootstrap.patch new file mode 100644 index 00000000000000..33ecb2d5c19d2c --- /dev/null +++ b/srcpkgs/premake5/patches/cross-bootstrap.patch @@ -0,0 +1,19 @@ +--- a/Bootstrap.mak ++++ b/Bootstrap.mak +@@ -137,14 +137,14 @@ + + linux: linux-clean + mkdir -p build/bootstrap +- $(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid ++ $(CC_FOR_BUILD) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid + ./build/bootstrap/premake_bootstrap embed + ./build/bootstrap/premake_bootstrap --to=build/bootstrap $(PREMAKE_OPTS) gmake + $(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG) + + linux-ninja: linux-clean + mkdir -p build/bootstrap +- $(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid ++ $(CC_FOR_BUILD) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid + ./build/bootstrap/premake_bootstrap embed + ./build/bootstrap/premake_bootstrap --to=build/bootstrap $(PREMAKE_OPTS) ninja + ninja -C build/bootstrap $(NINJA_CONFIG) diff --git a/srcpkgs/premake5/template b/srcpkgs/premake5/template index ed4d406abaf0bc..02f67d9c4d9568 100644 --- a/srcpkgs/premake5/template +++ b/srcpkgs/premake5/template @@ -1,19 +1,24 @@ # Template file for 'premake5' pkgname=premake5 -version=5.0.0beta3 +version=5.0.0 revision=1 -_version=${version/beta/-beta} build_style=gnu-makefile -make_build_args="-C build/gmake2.unix config=release" -hostmakedepends="unzip" +make_build_args="config=release" +hostmakedepends="libuuid-devel" makedepends="libuuid-devel" short_desc="Cross-platform, open-source build system" maintainer="Orphaned " license="BSD-3-Clause" homepage="https://premake.github.io/" -changelog="https://github.com/premake/premake-core/blob/v${_version}/CHANGES.txt" -distfiles="https://github.com/premake/premake-core/releases/download/v${_version}/premake-${_version}-src.zip" -checksum=4b2b1fe9772ca1caf689c07e8c32f108b8393922956f602ddaf404f73467bd83 +changelog="https://github.com/premake/premake-core/blob/v${version}/CHANGES.txt" +distfiles="https://github.com/premake/premake-core/archive/refs/tags/v${version}.tar.gz" +checksum=ed52d17463112d6b93bc6e34bb6e15c6332e1f313ad5259fdde60e270aa30aec + +pre_build() { + make -f Bootstrap.mak linux + build/bootstrap/premake_bootstrap gmake + build/bootstrap/premake_bootstrap embed +} do_install() { vbin bin/release/premake5