Empaqueteur AUR

VérifiéSûr

Crée des paquets Arch Linux (PKGBUILD) pour soumission à l'AUR. Utile pour empaqueter des logiciels pour Arch Linux, générer les métadonnées AUR (.SRCINFO) et gérer les builds VCS (git, svn) ou de versions stables.

Spar Skills Guide Bot
DeveloppementIntermédiaire
4002/06/2026
Claude Code
#arch-linux#aur#pkgbuild#package-management#linux

Recommandé pour

Notre avis

Crée des fichiers PKGBUILD et les métadonnées associées pour soumettre des projets logiciels au dépôt utilisateur Arch (AUR).

Points forts

  • Automatise la création de PKGBUILD en fonction de la structure du projet
  • Prend en charge plusieurs systèmes de construction (Cargo, Python, CMake, etc.)
  • Gère à la fois les archives de version et les paquets VCS
  • Inclut des conseils de validation et de soumission

Limites

  • Nécessite un environnement Arch Linux avec makepkg et namcap installés
  • Peut ne pas couvrir les configurations de construction très non standard
  • Suppose une familiarité avec le processus de soumission AUR
Quand l'utiliser

Lorsque vous devez empaqueter un projet logiciel pour le distribuer via le dépôt utilisateur Arch.

Quand l'éviter

Pour l'installation générale de paquets, la gestion de paquets existants, ou pour les distributions non Arch Linux.

Analyse de sécurité

Sûr
Score qualité85/100

The skill provides instructions for creating PKGBUILD files and does not include any dangerous commands or system modifications. It explicitly restricts usage to AUR packaging tasks and avoids arbitrary code execution.

Aucun point d'attention détecté

Exemples

Rust CLI tool packaging
Create an AUR package for my Rust CLI tool located at https://github.com/user/my-rust-tool (tag v1.2.0). Generate PKGBUILD and .SRCINFO.
Python library packaging
Generate a PKGBUILD for a Python package from PyPI called 'mylib' version 0.5.0. It uses setuptools, has dependencies on requests and click, and license is MIT.
CMake project with Git VCS
Package this CMake project from GitHub (https://github.com/user/project) for AUR as a VCS package. The project uses Git and builds with CMake. Provide PKGBUILD for the -git variant.

name: aur-bundler description: Creates Arch Linux packages (PKGBUILD) for AUR submission. Use when users want to "package for AUR", "create PKGBUILD", "build AUR package", "submit to AUR", or need Arch packaging for software projects. scope: global license: MIT

AUR Bundler Skill

When to use this skill

Use this skill when users need to:

  • Create PKGBUILD files for AUR submission
  • Package software projects for Arch Linux
  • Convert GitHub/GitLab projects into installable AUR packages
  • Build Rust, Python, CMake, Autotools, or other projects for AUR
  • Generate AUR metadata (.SRCINFO) and validate packages
  • Handle VCS packages (git, svn) or regular releases

Triggers: "AUR", "PKGBUILD", "Arch package", "aur-bundler", "package for Arch", "submit to AUR", "create AUR package"

Never use for: General package installation, system package management, non-Arch systems

Instructions

Step 1: Analyze Project Structure

  • Identify build system (Cargo.toml, package.json, Makefile, CMakeLists.txt, setup.py)
  • Extract metadata: name, version, description, license, URL
  • List all dependencies (runtime, build-time, optional)
  • Check for VCS needs (git, svn) or static releases

Step 2: Create PKGBUILD

Generate main build script with:

  • Mandatory fields: pkgname, pkgver, pkgrel, arch, pkgdesc, url, license
  • Source: Release tarball URL or VCS URL with branch/tag
  • Checksums: sha256sums for releases, SKIP for VCS
  • Dependencies: depends, makedepends, checkdepends, optdepends

Step 3: Implement Build Functions

build() {
  cd "$pkgname-$pkgver"
  # Build commands based on project type
}

package() {
  cd "$pkgname-$pkgver"
  # Install to $pkgdir with correct paths
}

Step 4: Test and Validate

  • Test build: makepkg --nodeps --skippgpcheck
  • Generate checksums: makepkg -g >> PKGBUILD
  • Validate: namcap PKGBUILD
  • Generate metadata: makepkg --printsrcinfo > .SRCINFO

Step 5: AUR Submission

  • Set up Git repository with PKGBUILD and .SRCINFO
  • Configure SSH for AUR access
  • Push to AUR git repository

Tools Required

  • makepkg: Package building (pacman)
  • namcap: PKGBUILD validation
  • git: For VCS packages and AUR submission
  • Build tools: base-devel, cargo, rust, cmake, etc.
Skills similaires