php/docs/publish/aur.md
Snider 28d004ff61
Some checks failed
CI / PHP 8.4 (push) Failing after 1m54s
CI / PHP 8.3 (push) Failing after 1m58s
feat: replace Go CLI with PHP framework
Go CLI commands moved to core/go-php. This repo now contains
the Laravel modular monolith framework (previously php-framework).

- Remove all Go files (now in core/go-php)
- Add PHP framework: event-driven module loading, lifecycle events
- Composer package: core/php
- core/php-framework remains as-is for backward compat

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 08:49:51 +00:00

1.8 KiB

AUR

Publish to the Arch User Repository for Arch Linux users.

Configuration

publishers:
  - type: aur
    package: myapp-bin

Options

Option Description Default
package AUR package name {project}-bin
maintainer Maintainer name From git config
description Package description From project
license License identifier Auto-detected
depends Runtime dependencies []
optdepends Optional dependencies []

Examples

Basic Package

publishers:
  - type: aur
    package: core-bin

With Dependencies

publishers:
  - type: aur
    package: core-bin
    depends:
      - git
      - docker
    optdepends:
      - "podman: alternative container runtime"

Environment Variables

Variable Description
AUR_SSH_KEY SSH private key for AUR push (required)

Setup

  1. Create an AUR account at https://aur.archlinux.org

  2. Add your SSH public key to your AUR account

  3. Create the initial package:

    git clone ssh://aur@aur.archlinux.org/myapp-bin.git
    
  4. After publishing, users install with:

    yay -S myapp-bin
    # or
    paru -S myapp-bin
    

Generated PKGBUILD

# Maintainer: Your Name <email@example.com>
pkgname=myapp-bin
pkgver=1.2.3
pkgrel=1
pkgdesc="CLI for building and deploying applications"
arch=('x86_64' 'aarch64')
url="https://github.com/org/myapp"
license=('MIT')
depends=('glibc')
source_x86_64=("${url}/releases/download/v${pkgver}/myapp_linux_amd64.tar.gz")
source_aarch64=("${url}/releases/download/v${pkgver}/myapp_linux_arm64.tar.gz")
sha256sums_x86_64=('abc123...')
sha256sums_aarch64=('def456...')

package() {
  install -Dm755 myapp "${pkgdir}/usr/bin/myapp"
}