1.1 KiB
1.1 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:50:07.095Z | 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://<your-host-ip>:8000/archrepo/x86_64