mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* 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:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "nph.spec"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("arnetheduck/nph"));
|
||||
Reference in New Issue
Block a user