Skip to content

Commit

Permalink
add: umdive (#1302) (#1345)
Browse files Browse the repository at this point in the history
* add: umdive

* fix(dive): %install

Signed-off-by: madomado <[email protected]>

---------

Signed-off-by: madomado <[email protected]>
(cherry picked from commit 6a688a7)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Jun 9, 2024
1 parent 7586c00 commit dd32482
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/langs/nim/dive/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "umdive.spec"
}
}
29 changes: 29 additions & 0 deletions anda/langs/nim/dive/umdive.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Name: umdive
Version: 0.1.1
Release: 1%?dist
Summary: Chroot utility (just like arch-chroot)
License: MIT
URL: https://github.com/Ultramarine-Linux/dive
Source0: %url/archive/refs/tags/v%version.tar.gz
Requires: (%_bindir/chroot or %_sbindir/chroot)
Requires: %_bindir/mount
BuildRequires: anda-srpm-macros nim
Provides: dive = %version-%release

%description
%summary.

%prep
%autosetup -n dive-%version

%build
nimble setup -y
nim c %nim_c src/dive

%install
install -Dpm755 src/dive %buildroot%_bindir/dive

%files
%doc README.md
%license LICENSE
%_bindir/dive
1 change: 1 addition & 0 deletions anda/langs/nim/dive/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("Ultramarine-Linux/dive"));

0 comments on commit dd32482

Please sign in to comment.