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.
cargo aur -o out generate ./target/cargo-aur/cargo-aur-1.6.0-x86_64.tar.gz
cargo aur -o out build
🔄 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`

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

`cargo aur -o out build`

---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/fosskers/cargo-aur/pull/20
Author: @SergioRibera
Created: 10/23/2023
Status: ❌ Closed
Base:
master← Head:dev📝 Commits (10+)
51571d1feat: add sufix support5ca18defeat: support multiple licensecf8aec6merge sufix into dev0aeb84emerge new sufix into dev3fb913afix: filter license files249eed1Merge branch 'licenses' into dev0fd5876fix: version generated395d448Merge branch 'release_name' into dev13d4c10merge: master updates61ac582feat: 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:
Fixes:
Things I plan to add in another PR:
logcrate withenv_loggerfor trace errors or debugcargo aur -hcargo aur -o out generate ./target/cargo-aur/cargo-aur-1.6.0-x86_64.tar.gzcargo aur -o out build🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.