44 lines
1.2 KiB
Markdown
44 lines
1.2 KiB
Markdown
---
|
|
title: Make Package
|
|
description: Information on how to make arch packages that can be used with pacman
|
|
published: true
|
|
date: 2025-05-30T13:57:24.603Z
|
|
tags:
|
|
editor: markdown
|
|
dateCreated: 2025-05-30T08:32:02.401Z
|
|
---
|
|
|
|
# Make Packages
|
|
|
|
In the root folder a [**PKGBUILD**](https://wiki.archlinux.org/title/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
|
|
``` |