wiki-js/Linux/Arch/make-package.md

952 B

title, description, published, date, tags, editor, dateCreated
title description published date tags editor dateCreated
Make Package Information on how to make arch packages that can be used with pacman true 2025-05-30T09:05:53.597Z markdown 2025-05-30T08:32:02.401Z

Make Packages

In the root folder a PKGBUILD file as to be created which contains configuration for the package.

When makepkg is run, these folders are created on the machine wich installs the package:

myapp/
├── PKGBUILD
├── src/        ← $srcdir
│   └── unpacked source files here
├── pkg/        ← $pkgdir lives here
│   └── myapp/...
└── myapp-1.0-1-x86_64.pkg.tar.zst  ← the final package
  • $pkgdir - Everything that needs to appear in the installed package must be placed here with the correct directory structure

  • $srcdir - refers to the directory where all source files are unpacked or copied by makepkg