-
Notifications
You must be signed in to change notification settings - Fork 4
pkg guide
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
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 :)