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);