This PR adds support for LICENSE detection and automatic installation in the PKGBUILD.
TODO
Compare detected license with contents of /usr/share/licenses/common/ and install if not present.
Install LICENSE in PKGBUILD if present.
🔄 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/5
**Author:** [@fosskers](https://github.com/fosskers)
**Created:** 6/5/2021
**Status:** ✅ Merged
**Merged:** 6/7/2021
**Merged by:** [@fosskers](https://github.com/fosskers)
**Base:** `master` ← **Head:** `colin/licenses`
---
### 📝 Commits (10+)
- [`64acbe5`](https://github.com/fosskers/cargo-aur/commit/64acbe589a9298115444a3fbf6bb76cd4d2ed9d1) Add LICENSE
- [`e1c9ff6`](https://github.com/fosskers/cargo-aur/commit/e1c9ff6fe13bdd6239137728c5bdb4343274024a) Remove `anyhow`
- [`6c40291`](https://github.com/fosskers/cargo-aur/commit/6c40291afeeae3c501ddcb944f9729cb600fab36) Output the `conflicts` field
- [`6dd2e4c`](https://github.com/fosskers/cargo-aur/commit/6dd2e4c67497e9aeb325d7a849d1029c4b355a6e) Check for missing LICENSE
- [`ffed75d`](https://github.com/fosskers/cargo-aur/commit/ffed75dcb0f80e18c40976e9189b8ddaaf5c18d2) Copy `LICENSE` file to tarball if it's there
- [`b8e33de`](https://github.com/fosskers/cargo-aur/commit/b8e33deed7040b77f244ac9f460128a45fb76f7f) Only copy the `LICENSE` if we actually have to
- [`0ea8be5`](https://github.com/fosskers/cargo-aur/commit/0ea8be5a7308122bbd5b70f115aa72f1141381cf) Output progress messages
- [`a676669`](https://github.com/fosskers/cargo-aur/commit/a676669e63b720b00cb4a02e27595d7eadddb527) If a `LICENSE` must be copied, ensure it's there
- [`113a00c`](https://github.com/fosskers/cargo-aur/commit/113a00c206283da326171221295da1dd094c158e) Install the LICENSE file if necessary
- [`deb0768`](https://github.com/fosskers/cargo-aur/commit/deb0768f3be1d2a9aaabcc50f8e6899699ea17e1) Mention that the PKGBUILD is auto-generated
### 📊 Changes
**5 files changed** (+226 additions, -72 deletions)
<details>
<summary>View changed files</summary>
📝 `CHANGELOG.md` (+11 -0)
📝 `Cargo.toml` (+2 -2)
➕ `LICENSE` (+21 -0)
➕ `src/error.rs` (+48 -0)
📝 `src/main.rs` (+144 -70)
</details>
### 📄 Description
This PR adds support for `LICENSE` detection and automatic installation in the `PKGBUILD`.
### TODO
- [x] Compare detected license with contents of `/usr/share/licenses/common/` and install if not present.
- [x] Install `LICENSE` in `PKGBUILD` if present.
---
<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/5
Author: @fosskers
Created: 6/5/2021
Status: ✅ Merged
Merged: 6/7/2021
Merged by: @fosskers
Base:
master← Head:colin/licenses📝 Commits (10+)
64acbe5Add LICENSEe1c9ff6Removeanyhow6c40291Output theconflictsfield6dd2e4cCheck for missing LICENSEffed75dCopyLICENSEfile to tarball if it's thereb8e33deOnly copy theLICENSEif we actually have to0ea8be5Output progress messagesa676669If aLICENSEmust be copied, ensure it's there113a00cInstall the LICENSE file if necessarydeb0768Mention that the PKGBUILD is auto-generated📊 Changes
5 files changed (+226 additions, -72 deletions)
View changed files
📝
CHANGELOG.md(+11 -0)📝
Cargo.toml(+2 -2)➕
LICENSE(+21 -0)➕
src/error.rs(+48 -0)📝
src/main.rs(+144 -70)📄 Description
This PR adds support for
LICENSEdetection and automatic installation in thePKGBUILD.TODO
/usr/share/licenses/common/and install if not present.LICENSEinPKGBUILDif present.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.