From 4bdb488fa65e5ae799ac8d8796332e8a80020b3a Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 25 Jan 2026 12:17:51 -0800 Subject: [PATCH] add: pdpmake (#9479) (#9482) --- anda/tools/pdpmake/anda.hcl | 5 ++++ anda/tools/pdpmake/pdpmake.spec | 49 +++++++++++++++++++++++++++++++++ anda/tools/pdpmake/update.rhai | 1 + 3 files changed, 55 insertions(+) create mode 100644 anda/tools/pdpmake/anda.hcl create mode 100644 anda/tools/pdpmake/pdpmake.spec create mode 100644 anda/tools/pdpmake/update.rhai diff --git a/anda/tools/pdpmake/anda.hcl b/anda/tools/pdpmake/anda.hcl new file mode 100644 index 0000000000..8a37235f1d --- /dev/null +++ b/anda/tools/pdpmake/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "pdpmake.spec" + } +} diff --git a/anda/tools/pdpmake/pdpmake.spec b/anda/tools/pdpmake/pdpmake.spec new file mode 100644 index 0000000000..598ac36f55 --- /dev/null +++ b/anda/tools/pdpmake/pdpmake.spec @@ -0,0 +1,49 @@ +%bcond_without posix_2024 +%bcond_without make_extensions + +%global forgeurl https://github.com/rmyorston/pdpmake +%global tag 2.0.4 +%forgemeta + +Name: pdpmake +Version: %{tag} +Release: 1%{?dist} +Summary: Public domain POSIX make + +Packager: metcya + +License: Unlicense +URL: https://frippery.org/make +Source0: %{forgesource} + +BuildRequires: gcc + +%description +This is a public domain implementation of make which follows the POSIX +standard. + +%prep +%forgesetup + +%build + +%{__cc} -DENABLE_FEATURE_POSIX_2024=%{with_posix_2024} \ + -DENABLE_FEATURE_MAKE_EXTENSIONS=%{with_make_extensions} \ + $CFLAGS \ + $LDFLAGS \ + -o pdpmake \ + *.c + +%install +install -Dm 755 pdpmake %{buildroot}%{_bindir}/pdpmake +install -Dm 644 pdpmake.1 %{buildroot}%{_mandir}/man1/pdpmake.1 + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.* + +%changelog +* Sun Jan 25 2026 metcya +- Initial package diff --git a/anda/tools/pdpmake/update.rhai b/anda/tools/pdpmake/update.rhai new file mode 100644 index 0000000000..0ee8ea1da8 --- /dev/null +++ b/anda/tools/pdpmake/update.rhai @@ -0,0 +1 @@ +rpm.global("tag", gh_tag("rmyorston/pdpmake"));