* add: nph

* nim

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
(cherry picked from commit 8074e4a17f)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2024-08-29 07:32:50 -07:00
committed by GitHub
parent 01b91d511a
commit 2ba7964ae2
3 changed files with 37 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "nph.spec"
}
}
+31
View File
@@ -0,0 +1,31 @@
%define debug_package %nil
Name: nph
Version: 0.6.0
Release: 1%?dist
Summary: An opinionated code formatter for Nim
License: MIT
URL: https://github.com/arnetheduck/nph
Source0: %url/archive/refs/tags/v%version.tar.gz
SourceLicense: MIT
Packager: madonuko <mado@fyralabs.com>
BuildRequires: anda-srpm-macros
BuildRequires: nim
%description
nph is an opinionated source code formatter for the Nim language, aiming to take the drudgery of manual formatting out of your coding day.
%prep
%autosetup
%nim_prep -t:"%nim_tflags" -l:"%nim_lflags"
%build
nimble c -d:release -t:"%nim_tflags" -l:"%nim_lflags" src/nph
%install
install -Dpm755 src/nph %buildroot%_bindir/nph
%files
%_bindir/nph
%license copying.txt
%doc README.md
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("arnetheduck/nph"));