Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heyhusen/archlinux-package-action
GitHub Action to run Arch Linux's package tools
https://github.com/heyhusen/archlinux-package-action
archlinux aur github-actions makepkg pkgbuild
Last synced: 4 months ago
JSON representation
GitHub Action to run Arch Linux's package tools
- Host: GitHub
- URL: https://github.com/heyhusen/archlinux-package-action
- Owner: heyhusen
- License: mit
- Created: 2021-05-14T14:23:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-08T09:02:25.000Z (5 months ago)
- Last Synced: 2024-10-12T22:34:35.313Z (4 months ago)
- Topics: archlinux, aur, github-actions, makepkg, pkgbuild
- Language: Shell
- Homepage: https://github.com/marketplace/actions/arch-linux-s-package-action
- Size: 93.8 KB
- Stars: 27
- Watchers: 3
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Arch Linux's package tools action
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/heyhusen/archlinux-package-action/main.yml?style=flat-square&label=CI)](https://github.com/heyhusen/archlinux-package-action/actions) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/heyhusen/archlinux-package-action?style=flat-square)](https://github.com/heyhusen/archlinux-package-action/releases) [![GitHub](https://img.shields.io/github/license/heyhusen/archlinux-package-action?style=flat-square)](./LICENSE)
This action allows running tools needed for creating Arch Linux (and AUR) package.
Here's what this action can do:- Update `pkgver`, `pkgrel`, or checksums on PKGBUILD file
- Validate PKGBUILD with [namcap](https://wiki.archlinux.org/title/namcap)
- Generate [.SRCINFO](https://wiki.archlinux.org/title/.SRCINFO) based on your PKGBUILD
- Run [makepkg](https://wiki.archlinux.org/title/Makepkg) with custom flags (rather than default)## Usage
### Requirement
- [PKGBUILD](https://wiki.archlinux.org/title/PKGBUILD) file inside your repository.
- Use [actions/checkout](https://github.com/actions/checkout) in previous step. This is important, unless you want your [$GITHUB_WORKSPACE](https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables) folder to be empty.### Customizing
Following inputs can be used as `step.with` keys
| Name | Type | Default | Required | Description |
| -------------------------- | ------- | ------------------ | -------- | -------------------------------------------------------------------------------- |
| `path` | String | | `false` | Path where PKGBUILD is located. This path always located under $GITHUB_WORKSPACE |
| `pkgver` | String | | `false` | Update `pkgver` on your PKGBUILD |
| `pkgrel` | Integer | | `false` | Update `pkgrel` on your PKGBUILD |
| `updpkgsums` | Boolean | `false` | `false` | Update checksums on your PKGBUILD |
| `srcinfo` | Boolean | `false` | `false` | Generate new .SRCINFO |
| `namcap` | Boolean | `true` | `false` | Validate PKGBUILD |
| `flags` | String | `-cfs --noconfirm` | `false` | Flags after `makepkg` command. Leave this empty will disable this command. |
| `aur` | Boolean | `false` | `false` | Resolve dependencies using paru |
| `update_archlinux_keyring` | Boolean | `true` | `false` | Update the archlinux keyring |### Examples
#### 1. Basic
This action will run `makepkg -cfs --noconfirm` command, then validate PKGBUILD with namcap.
```yaml
name: CIon:
push:
branches: mainjobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2- name: Validate package
uses: heyhusen/archlinux-package-action@v2
```#### 2. Only generate .SRCINFO
```yaml
name: CIon:
push:
branches: mainjobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2- name: Validate package
uses: heyhusen/archlinux-package-action@v2
with:
flags: ''
namcap: false
srcinfo: true
```#### 3. Only update checksums on PKGBUILD
```yaml
name: CIon:
push:
branches: mainjobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2- name: Validate package
uses: heyhusen/archlinux-package-action@v2
with:
flags: ''
namcap: false
updpkgsums: true
```#### 4. Custom path & custom flags
```yaml
name: CIon:
push:
branches: mainjobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2- name: Validate package
uses: heyhusen/archlinux-package-action@v2
with:
path: package
flags: '-si --noconfirm'
namcap: false
```## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)