Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

pkg guide

Nabeen Tiwaree edited this page Nov 18, 2022 · 1 revision

Metis Linux repo contribution guide

A PKGBUILD is a shell script containing the build information required by Metis Linux packages. Since metislinux is based on artix it has the package manager pacman. Read out the article on Archwiki

  1. PKGBUILD
  2. Makepkg

Once you understood , how pacman PKGBUILD and makepkg works, Then fork and clone metis repo locally.

$ git clone --depth=1 https://github.com/metis-os/metis-repo

after cloning you'll see the directory structure something like below

-> tree .
β”œβ”€β”€ CNAME
β”œβ”€β”€ LICENSE
β”œβ”€β”€ main.sh
β”œβ”€β”€ README.md
└── x86_64
    β”œβ”€β”€ somepackages.pkg.tar.zst

We don't need to touch any files other than the x86_64 directory and main.sh. The main.sh script is to automate things but you can do that manually if you wish.

I believe you've already made a PKGBUILD file for your app/tool by following arch wiki. Now create a tar.zst compression of your PKG binary by running..

$ makepkg

inside the PKGBUILD directory.

main.sh script has three arguments

Usage : main.sh [-c] [-u] [-g ]
Options:
        -h          Show this help message
        -u          Update Repo
        -g          Add files to github repo.
        -c          Clean current repo

We just need to follow the sequence of -c -u -g.

First run

$ ./main.sh -c

to clean the db files then move yourpkg.tar.zst file to x86_64 directory and run

$ ./main.sh -u

Updates the db files with your latest package binary. Now the final step is to move it to github so that others can use it. Just run

$ ./main.sh -g

It prompts for the commit message.
Commit message should contain what package you added and the version itself.

Thanks for reading.
Keep using Metis Linux chads :)

Clone this wiki locally