From c524d305041ae515d7d8a7e9a49dedbcf9e702f1 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 23 Nov 2025 21:44:12 -0800 Subject: [PATCH] add: fasm (#7629) (#7634) (cherry picked from commit 1d47b39aa7e32c779cb7a5f7c0e6e232def0d471) Co-authored-by: metcya <134973769+metcya@users.noreply.github.com> Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/fasm/anda.hcl | 6 ++++++ anda/tools/fasm/fasm.spec | 36 ++++++++++++++++++++++++++++++++++++ anda/tools/fasm/update.rhai | 3 +++ 3 files changed, 45 insertions(+) create mode 100644 anda/tools/fasm/anda.hcl create mode 100644 anda/tools/fasm/fasm.spec create mode 100644 anda/tools/fasm/update.rhai diff --git a/anda/tools/fasm/anda.hcl b/anda/tools/fasm/anda.hcl new file mode 100644 index 0000000000..0d60b5aa8c --- /dev/null +++ b/anda/tools/fasm/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64", "i686"] + rpm { + spec = "fasm.spec" + } +} diff --git a/anda/tools/fasm/fasm.spec b/anda/tools/fasm/fasm.spec new file mode 100644 index 0000000000..356c53d34d --- /dev/null +++ b/anda/tools/fasm/fasm.spec @@ -0,0 +1,36 @@ +%global debug_package %{nil} + +Name: fasm +Release: 1%{?dist} +Version: 1.73.33 +Summary: Fast assembler for the x86 and x86-64 architectures +License: BSD-2-Clause +URL: https://flatassembler.net +Source: %{url}/%{name}-%{version}.tgz +Packager: metcya +ExclusiveArch: x86_64 i686 + +%description +%summary. + +%prep +%autosetup -n %{name} + +%build +%ifarch i686 +./fasm source/Linux/fasm.asm %{name}.out +%elifarch x86_64 +./fasm.x64 source/Linux/x64/fasm.asm %{name}.out +%endif + +%install +install -Dm 755 %{name}.out %{buildroot}%{_bindir}/%{name} + +%files +%doc fasm.txt whatsnew.txt +%license license.txt +%{_bindir}/%{name} + +%changelog +* Sun Nov 23 2025 metcya +- Package fasm diff --git a/anda/tools/fasm/update.rhai b/anda/tools/fasm/update.rhai new file mode 100644 index 0000000000..5006e7f35a --- /dev/null +++ b/anda/tools/fasm/update.rhai @@ -0,0 +1,3 @@ +let content = get("https://raw.githubusercontent.com/tgrysztar/fasm/master/SOURCE/VERSION.INC"); +let version = find("VERSION_STRING equ \"(\\d+\\.\\d+\\.\\d+)\"", content, 1); +rpm.version(version);