archlinux-pkgbuild/build-systems

Create PKGBUILDs for CMake and Meson projects with Arch packaging standards.

6|Updated Jan 14, 2020
One-click install
npx skills add https://github.com/SteamedFish/dotfiles --skill archlinux-pkgbuild-build-systems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: archlinux-pkgbuild/build-systems
Source: https://github.com/SteamedFish/dotfiles/tree/main/.config/opencode/skills/archlinux-pkgbuild/build-systems
Command: npx skills add https://github.com/SteamedFish/dotfiles --skill archlinux-pkgbuild-build-systems

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of creating Arch Linux packages (PKGBUILDs) for software that uses CMake or Meson as its build system, ensuring correct configuration and compliance with Arch Linux packaging standards.

Core Features & Use Cases

  • CMake Packaging: Provides rules and templates for configuring CMake builds, including setting installation prefixes, library directories, and RPATH.
  • Meson Packaging: Offers guidance and templates for Meson builds, emphasizing correct prefix usage and build types.
  • Use Case: You need to package a new C++ application that uses CMake for its build system. This Skill will guide you through creating a PKGBUILD that correctly sets CMAKE_INSTALL_PREFIX=/usr and CMAKE_INSTALL_LIBDIR=lib.

Quick Start

Use the archlinux-pkgbuild/build-systems skill to create a PKGBUILD for a CMake project by following the provided CMake template.

Frequently Asked Questions about archlinux-pkgbuild/build-systems

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an Arch Linux PKGBUILD for a CMake project?

To create an Arch Linux PKGBUILD for a CMake project, you must configure the build with correct installation prefixes and library directories. This involves setting specific flags like CMAKE_INSTALL_PREFIX=/usr and CMAKE_INSTALL_LIBDIR=lib.

Why does my Meson build fail to package correctly on Arch Linux?

Your Meson build might fail Arch Linux packaging due to incorrect prefix usage or build type configurations. Packaging software with Meson requires adherence to specific build system flags and Arch Linux packaging guidelines to avoid installation mismatches.

How do I configure RPATH correctly when packaging Arch Linux software?

Configuring RPATH correctly during Arch Linux packaging involves addressing common build system challenges directly in your PKGBUILD. Proper RPATH configurations are required alongside setting correct installation prefixes to ensure library linking works.

What is the best way to package C++ applications using CMake or Meson for Arch Linux?

The best way to package C++ applications using CMake or Meson for Arch Linux is to follow specific build system templates. These templates ensure compliance with Arch Linux packaging standards by addressing common challenges like incorrect installation prefixes.

Do I need to set specific flags for Meson builds in an Arch Linux PKGBUILD?

Yes, you need to set specific flags for Meson builds in an Arch Linux PKGBUILD. Correct prefix usage and build types are emphasized to ensure the software installs correctly and complies with Arch Linux packaging guidelines.