-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(precommit): Add initial config * fix(all): Run initial precommit hooks on all files * feat(precommit): Add `file-contents-sorter` * fix(packagelist): Run `file-contents-sorter` on it * feat(precommit): Add `mixed-line-ending` for `lf` * fix(packages): Apply `mixed-line-ending` on it * feat(precommit): Add `shellcheck` hook * feat(precommit): Add `shfmt` hook * feat(shfmt): Apply to all * fix(shfmt): Simplify code * feat(readme): Add dev env setup info * docs(readme): fix grammer `on` -> `for` * build(precommit): skip `SC2154` check Co-authored-by: The TwilightBlood <[email protected]>
- Loading branch information
Showing
133 changed files
with
721 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,3 @@ jobs: | |
env: | ||
TERM: xterm | ||
shell: bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*.tar.xz | ||
*.tar.gz | ||
*.zip | ||
*.png | ||
*.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: file-contents-sorter | ||
files: packagelist | ||
- id: mixed-line-ending | ||
args: ["--fix=lf"] | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 2.1.5 | ||
hooks: | ||
- id: shellcheck | ||
types: [] | ||
args: ["-o", "all", "-e", "2148", "-e", "SC2033", "-e", "SC2032", "-e", "SC2034", "-e", "SC2154"] | ||
files: '^.*\.(pacscript)$' | ||
- id: shfmt | ||
args: ["-i", "2", "-bn", "-ci", "-sr", "-kp", "-s"] | ||
types: [] | ||
files: '^.*\.(pacscript)$' | ||
# vim:set ft=yaml ts=2 sw=2 et: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
<p align="center"> | ||
<a href="https://github.com/pacstall/pacstall-programs/tree/master/packages"><img src="https://img.shields.io/github/repo-size/pacstall/pacstall-programs?color=G&style=flat-square"></a> | ||
|
||
<p align="center"> | ||
<b>PACSTALL PROGRAMS</b> | ||
<br/> | ||
This is where (as of 1.6.1 Cerise) package scripts maintained by the pacstall team are located | ||
</p> | ||
# Pacstall Programs | ||
|
||
This is the default repository of pacscripts which pacstall uses to install software. You can fork this repository and add make your own package repository as long as it follows the basic structure: | ||
|
||
```monospace | ||
package-repository/ | ||
├── packagelist | ||
└── packages/ | ||
└── example-package/ | ||
└── example-package.pacscript | ||
``` | ||
|
||
You can then use `pacstall -A` command to add your repository to your `repolist`. Consult the wiki for more info. | ||
|
||
## How to setup the environment for pacscript development | ||
|
||
This repository maintains a certain standard of commits. To ensure that your commits are up to the standard, we use [pre-commit](https://pre-commit.com/) hooks. | ||
|
||
Here are the development dependencies that you need to install as a developer: | ||
|
||
| Dependency | How to install | | ||
:-------------------------------------------:|-------------------------------------------------------------------------------------------------------------------------------------------| | ||
| [pre-commit](https://pre-commit.com/) | `sudo pip install pre-commit` | | ||
| [shellcheck](https://www.shellcheck.net/) | `sudo apt install shellcheck` | | ||
| [shfmt](https://pkg.go.dev/mvdan.cc/sh/v3) | You can install using [go](https://go.dev/) or download the linux binary from their [releases page](https://github.com/mvdan/sh/releases) | | ||
|
||
After the dependencies are installed simply clone this repository, and use `pre-commit install` to install the pre-configured hooks to your cloned repository. | ||
|
||
Now, whenever you try to commit a patch all the configured hooks will run and block/fix your code so that it adheres to or standards. | ||
|
||
In case for some reason (false positives etc), you want to skip the hooks commit using `git commit --no-verify` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ version="2.2.0" | |
url="https://github.com/TheAssassin/AppImageLauncher/releases/download/v$version/${gives}_${version}-travis995.0f91801.bionic_amd64.deb" | ||
description="Helper application for Linux distributions serving as a kind of entry point for running and integrating AppImages." | ||
hash="f4b9db56a6ba7dd091074b14157612986a9f6a0cb3fcd230abfc8f4555c70a7f" | ||
maintainer="WRM-42 <[email protected]>" | ||
maintainer="WRM-42 <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ version="1.58.0" | |
url="https://github.com/$gives/$gives/releases/download/v$version/$gives-amd64.deb" | ||
description="The hackable text editor." | ||
hash="4310e1af8830952f4efe59349dfaacc39b0588f72449314bd795ed469421d2d5" | ||
maintainer="WRM-42 <[email protected]>" | ||
maintainer="WRM-42 <[email protected]>" |
Oops, something went wrong.