From c012c6f94e43e6f6aa18fb903f659988f62de678 Mon Sep 17 00:00:00 2001 From: madomado Date: Sat, 1 Jun 2024 03:05:26 +0800 Subject: [PATCH] add: mkfstab (#1303) --- anda/langs/nim/mkfstab/anda.hcl | 5 +++++ anda/langs/nim/mkfstab/mkfstab.spec | 26 ++++++++++++++++++++++++++ anda/langs/nim/mkfstab/update.rhai | 1 + 3 files changed, 32 insertions(+) create mode 100644 anda/langs/nim/mkfstab/anda.hcl create mode 100644 anda/langs/nim/mkfstab/mkfstab.spec create mode 100644 anda/langs/nim/mkfstab/update.rhai diff --git a/anda/langs/nim/mkfstab/anda.hcl b/anda/langs/nim/mkfstab/anda.hcl new file mode 100644 index 0000000000..8adec4b82d --- /dev/null +++ b/anda/langs/nim/mkfstab/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "mkfstab.spec" + } +} diff --git a/anda/langs/nim/mkfstab/mkfstab.spec b/anda/langs/nim/mkfstab/mkfstab.spec new file mode 100644 index 0000000000..74b3cb1f83 --- /dev/null +++ b/anda/langs/nim/mkfstab/mkfstab.spec @@ -0,0 +1,26 @@ +Name: mkfstab +Version: 0.1.1 +Release: 1%?dist +Summary: An alternative to genfstab: generate output suitable for addition to /etc/fstab +License: MIT +URL: https://github.com/Ultramarine-Linux/mkfstab +Source0: %url/archive/refs/tags/v%version.tar.gz +BuildRequires: nim anda-srpm-macros + +%description +An alternative to genfstab from Arch Linux. This is a dead simple but faster implementation of genfstab. + +%prep +%autosetup + +%build +nimble setup -y +nim c %nim_c src/%name + +%install +install -Dpm755 src/%name %buildroot%_bindir/%name + +%files +%doc README.md +%license LICENSE +%_bindir/%name diff --git a/anda/langs/nim/mkfstab/update.rhai b/anda/langs/nim/mkfstab/update.rhai new file mode 100644 index 0000000000..cc12b58ddb --- /dev/null +++ b/anda/langs/nim/mkfstab/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("Ultramarine-Linux/mkfstab"));