[PR #20] [CLOSED] Big Changes #26

Closed
opened 2026-03-01 09:11:30 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosskers/cargo-aur/pull/20
Author: @SergioRibera
Created: 10/23/2023
Status: Closed

Base: masterHead: dev


📝 Commits (10+)

  • 51571d1 feat: add sufix support
  • 5ca18de feat: support multiple license
  • cf8aec6 merge sufix into dev
  • 0aeb84e merge new sufix into dev
  • 3fb913a fix: filter license files
  • 249eed1 Merge branch 'licenses' into dev
  • 0fd5876 fix: version generated
  • 395d448 Merge branch 'release_name' into dev
  • 13d4c10 merge: master updates
  • 61ac582 feat: move args to module and replace gumdrop by clap

📊 Changes

8 files changed (+552 additions, -380 deletions)

View changed files

📝 Cargo.toml (+6 -1)
📝 README.md (+47 -3)
src/args.rs (+66 -0)
src/dist.rs (+104 -0)
📝 src/error.rs (+28 -1)
📝 src/main.rs (+31 -375)
src/metadata.rs (+193 -0)
src/pkgbuild.rs (+77 -0)

📄 Description

Hi, I've been using and following the project for a while now, I think it's great and I really appreciate the existence of this project.

As a developer I have been wanting to contribute to certain things that I would like to have in the official version, here is a list of the things I am including with this pr

Features:

  • Customizable output path
  • Replacement of gumdrop by clap
  • Subcommands for build and generate
  • Generation of the PKGBUILD with a previously generated tar
  • New parameters added to the aur metadata
    • package_name: to make the package name more customizable using template strings, more info here
    • source_download: for those who want to have another provider apart from github and gitlab, here also use template string to make it more customizable
  • Restructuring of the project into modules to facilitate development.

Fixes:

  • All files arrive to custom output path.
  • Better error handling (Implementing a trait to have ExitCode linked to Result)
  • More understandable commands (There is a possibility to generate usage but I listen to opinions)

Things I plan to add in another PR:

  • That the build architecture is customizable through the arguments, this is because ArchLinux has a version arm and could be published for both without problem.
  • log crate with env_logger for trace errors or debug

cargo aur -h
out

cargo aur -o out generate ./target/cargo-aur/cargo-aur-1.6.0-x86_64.tar.gz
out1

cargo aur -o out build
out2


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosskers/cargo-aur/pull/20 **Author:** [@SergioRibera](https://github.com/SergioRibera) **Created:** 10/23/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dev` --- ### 📝 Commits (10+) - [`51571d1`](https://github.com/fosskers/cargo-aur/commit/51571d1b9e2d040b64798a1527ad98431f1d2a28) feat: add sufix support - [`5ca18de`](https://github.com/fosskers/cargo-aur/commit/5ca18de4c36fa8709f3fbabd40a851f2da277173) feat: support multiple license - [`cf8aec6`](https://github.com/fosskers/cargo-aur/commit/cf8aec648da0418852d66652ad00dbaf2b8f7124) merge sufix into dev - [`0aeb84e`](https://github.com/fosskers/cargo-aur/commit/0aeb84e2c00dbcf1124f6e1528da304f7df95e9b) merge new sufix into dev - [`3fb913a`](https://github.com/fosskers/cargo-aur/commit/3fb913a23e04933b1bdb488319784bbcd41d6af8) fix: filter license files - [`249eed1`](https://github.com/fosskers/cargo-aur/commit/249eed1bb1c870a81358b660e34b8a280032f124) Merge branch 'licenses' into dev - [`0fd5876`](https://github.com/fosskers/cargo-aur/commit/0fd5876e6c10f932b5d5f39aa1af833d99a840e9) fix: version generated - [`395d448`](https://github.com/fosskers/cargo-aur/commit/395d4488176bc7f8c97592c4c4bd1ee7972a3372) Merge branch 'release_name' into dev - [`13d4c10`](https://github.com/fosskers/cargo-aur/commit/13d4c100e2ef420b10a18265747ebdf151acf0eb) merge: master updates - [`61ac582`](https://github.com/fosskers/cargo-aur/commit/61ac5822189eeef2577d78b71d29186ff3c17841) feat: move args to module and replace gumdrop by clap ### 📊 Changes **8 files changed** (+552 additions, -380 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.toml` (+6 -1) 📝 `README.md` (+47 -3) ➕ `src/args.rs` (+66 -0) ➕ `src/dist.rs` (+104 -0) 📝 `src/error.rs` (+28 -1) 📝 `src/main.rs` (+31 -375) ➕ `src/metadata.rs` (+193 -0) ➕ `src/pkgbuild.rs` (+77 -0) </details> ### 📄 Description Hi, I've been using and following the project for a while now, I think it's great and I really appreciate the existence of this project. As a developer I have been wanting to contribute to certain things that I would like to have in the official version, here is a list of the things I am including with this pr **Features:** - Customizable output path - Replacement of gumdrop by clap - Subcommands for build and generate - Generation of the PKGBUILD with a previously generated tar - New parameters added to the aur metadata - package_name: to make the package name more customizable using template strings, more info [here](https://github.com/SergioRibera/srtemplate) - source_download: for those who want to have another provider apart from github and gitlab, here also use template string to make it more customizable - Restructuring of the project into modules to facilitate development. **Fixes:** - All files arrive to custom output path. - Better error handling (Implementing a trait to have ExitCode linked to Result) - More understandable commands (There is a possibility to generate usage but I listen to opinions) **Things I plan to add in another PR:** - That the build architecture is customizable through the arguments, this is because ArchLinux has a version [arm](https://archlinuxarm.org/) and could be published for both without problem. - [`log`](https://crates.io/crates/log) crate with [`env_logger`](https://crates.io/crates/env_logger) for trace errors or debug `cargo aur -h` ![out](https://github.com/fosskers/cargo-aur/assets/56278796/29ea1786-0ab1-4866-b82b-685a7b86b00d) `cargo aur -o out generate ./target/cargo-aur/cargo-aur-1.6.0-x86_64.tar.gz` ![out1](https://github.com/fosskers/cargo-aur/assets/56278796/0ad8f38d-93a9-4d7f-98dc-edf956361255) `cargo aur -o out build` ![out2](https://github.com/fosskers/cargo-aur/assets/56278796/5e3517e3-9675-48df-9d8d-823256bd2d54) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-01 09:11:30 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cargo-aur#26