Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rnr, rune, rustywind, rusync, sad #28324

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions recipes/rnr/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:: check licenses
cargo-bundle-licenses ^
--format yaml ^
--output THIRDPARTY.yml || goto :error

:: build statically linked binary with Rust
cargo install --bins --no-track --locked --root %LIBRARY_PREFIX% --path . || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
23 changes: 23 additions & 0 deletions recipes/rnr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

# check licenses
cargo-bundle-licenses \
--format yaml \
--output THIRDPARTY.yml

# build statically linked binary with Rust
export SHELL_COMPLETIONS_DIR=${BUILD_PREFIX}
cargo install --bins --no-track --locked --root ${PREFIX} --path .

mkdir -p ${PREFIX}/etc/bash_completion.d
mkdir -p ${PREFIX}/share/fish/vendor_completions.d
mkdir -p ${PREFIX}/share/zsh/site-functions
fingerprint_dir=$(dirname $(find . -path "*/rnr-*/out" | head -n 1))
install -m 644 ${fingerprint_dir}/out/rnr.bash ${PREFIX}/etc/bash_completion.d/rnr
install -m 644 ${fingerprint_dir}/out/rnr.fish ${PREFIX}/share/fish/vendor_completions.d
install -m 644 ${fingerprint_dir}/out/_rnr ${PREFIX}/share/zsh/site-functions

# strip debug symbols
"$STRIP" "$PREFIX/bin/${PKG_NAME}"
37 changes: 37 additions & 0 deletions recipes/rnr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set name = "rnr" %}
{% set version = "0.4.2" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/ismaelgv/rnr/archive/v{{ version }}.tar.gz
sha256: cde8e5366552263300e60133b82f6a3868aeced2fe83abc91c2168085dff0998

build:
number: 0

requirements:
build:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- {{ stdlib('c') }}
- cargo-bundle-licenses

test:
commands:
- rnr --help

about:
home: https://github.com/chmln/rnr
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Command-line tool to batch rename files and directories
dev_url: https://github.com/chmln/rnr

extra:
recipe-maintainers:
- danielnachun
12 changes: 12 additions & 0 deletions recipes/rune/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
:: check licenses
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml || goto :error

:: build
cargo install --bins --no-track --locked --root "%LIBRARY_PREFIX%" --path crates\rune-cli || goto :error
cargo install --bins --no-track --locked --root "%LIBRARY_PREFIX%" --path crates\rune-languageserver || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
15 changes: 15 additions & 0 deletions recipes/rune/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

cargo-bundle-licenses \
--format yaml \
--output THIRDPARTY.yml

# build statically linked binary with Rust
cargo install --bins --no-track --locked --root ${PREFIX} --path crates/rune-cli
cargo install --bins --no-track --locked --root ${PREFIX} --path crates/rune-languageserver

# strip debug symbols
"$STRIP" "$PREFIX/bin/rune"
"$STRIP" "$PREFIX/bin/rune-languageserver"
38 changes: 38 additions & 0 deletions recipes/rune/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% set name = "rune" %}
{% set version = "0.13.4" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/rune-rs/rune/archive/{{ version }}.tar.gz
sha256: f6a1e89e4824d98319ec46722c05f1e62434543875ff3667732c161a0807ae20

build:
number: 0

requirements:
build:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- {{ stdlib('c') }}
- cargo-bundle-licenses

test:
commands:
- rune --help

about:
home: https://github.com/rune-rs/rune
license: Apache-2.0 AND MIT
license_file:
- LICENSE-APACHE
- LICENSE-MIT
- THIRDPARTY.yml
summary: An embeddable dynamic programming language for Rust.
dev_url: https://github.com/rune-rs/rune

extra:
recipe-maintainers:
- danielnachun
11 changes: 11 additions & 0 deletions recipes/rustywind/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:: check licenses
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml || goto :error

:: build
cargo install --bins --no-track --locked --root "%LIBRARY_PREFIX%" --path rustywind-cli || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
13 changes: 13 additions & 0 deletions recipes/rustywind/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

cargo-bundle-licenses \
--format yaml \
--output THIRDPARTY.yml

# build statically linked binary with Rust
cargo install --bins --no-track --locked --root ${PREFIX} --path rustywind-cli

# strip debug symbols
"$STRIP" "$PREFIX/bin/$PKG_NAME"
37 changes: 37 additions & 0 deletions recipes/rustywind/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set name = "rustywind" %}
{% set version = "0.22.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/avencera/rustywind/archive/v{{ version }}.tar.gz
sha256: c2181a32c873f8608a89973eaed8b540ee3421c7bc1740f954d3d7f5ef620885

build:
number: 0

requirements:
build:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- {{ stdlib('c') }}
- cargo-bundle-licenses

test:
commands:
- rustywind --help

about:
home: https://github.com/avencera/rustywind
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: CLI for organizing Tailwind CSS classes
dev_url: https://github.com/avencera/rustywind

extra:
recipe-maintainers:
- danielnachun
13 changes: 13 additions & 0 deletions recipes/rusync/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:: check licenses
cargo-bundle-licenses ^
--format yaml ^
--output THIRDPARTY.yml || goto :error

:: build statically linked binary with Rust
cargo install --bins --no-track --locked --root %LIBRARY_PREFIX% --path . || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
14 changes: 14 additions & 0 deletions recipes/rusync/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

# check licenses
cargo-bundle-licenses \
--format yaml \
--output THIRDPARTY.yml

# build statically linked binary with Rust
cargo install --bins --no-track --locked --root ${PREFIX} --path .

# strip debug symbols
"$STRIP" "$PREFIX/bin/${PKG_NAME}"
37 changes: 37 additions & 0 deletions recipes/rusync/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set name = "rusync" %}
{% set version = "0.7.2" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/your-tools/rusync/archive/v{{ version }}.tar.gz
sha256: 78136abaa4089fb8018cec6acf3ba08f48341f1404be16b52da3e829edb0da43

build:
number: 0

requirements:
build:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- {{ stdlib('c') }}
- cargo-bundle-licenses

test:
commands:
- rusync --help

about:
home: https://github.com/your-tools/rusync
license: BSD-3-Clause
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Minimalist rsync implementation in Rust
dev_url: https://github.com/your-tools/rusync

extra:
recipe-maintainers:
- danielnachun
13 changes: 13 additions & 0 deletions recipes/sad/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:: check licenses
cargo-bundle-licenses ^
--format yaml ^
--output THIRDPARTY.yml || goto :error

:: build statically linked binary with Rust
cargo install --bins --no-track --locked --root %LIBRARY_PREFIX% --path . || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
14 changes: 14 additions & 0 deletions recipes/sad/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

# check licenses
cargo-bundle-licenses \
--format yaml \
--output THIRDPARTY.yml

# build statically linked binary with Rust
cargo install --bins --no-track --locked --root ${PREFIX} --path .

# strip debug symbols
"$STRIP" "$PREFIX/bin/${PKG_NAME}"
37 changes: 37 additions & 0 deletions recipes/sad/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set name = "sad" %}
{% set version = "0.4.29" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/ms-jpq/sad/archive/v{{ version }}.tar.gz
sha256: 2f66d3031a662c197dba1758ccc9f670694e825b7f90b20fa32c1670c4ae9ee4

build:
number: 0

requirements:
build:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- {{ stdlib('c') }}
- cargo-bundle-licenses

test:
commands:
- sad --help

about:
home: https://github.com/ms-jpq/sad
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: CLI search and replace | Space Age seD
dev_url: https://github.com/ms-jpq/sad

extra:
recipe-maintainers:
- danielnachun