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

1.2 KiB

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-30T13:57:24.603Z 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

Connect Client to Custom Repo

Create the file /etc/pacman.d/customrepo.conf

[customrepo]
Server = http://192.168.1.101:3015/archrepo/x86_64

Then include in /etc/pacman.conf

Include = /etc/pacman.d/customrepo.conf