mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-04 10:52:18 +00:00
(cherry picked from commit 1d47b39aa7)
Co-authored-by: metcya <134973769+metcya@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
project pkg {
|
||||
arches = ["x86_64", "i686"]
|
||||
rpm {
|
||||
spec = "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 <metcya@gmail.com>
|
||||
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 <metcya@gmail.com>
|
||||
- Package fasm
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user