Saturday, March 15, 2025

How to make Arch Linux pacman package

 In order to create a pacman package you can then install on other Arch servers, first get the source code for Golf. Since we're using "wget" to get the PKGBUILD spec file, install "wget" first(in case you don't have it already):

sudo pacman -Sy wget

Then get the PKGBUILD spec file:

wget "https://github.com/golf-lang/golf/blob/main/PKGBUILD?raw=true" -O PKGBUILD

Create the package:

makepkg --noconfirm -s -f

and then copy the "golf-<version>-0-x86_64.pkg.tar.zst" file and it install elsewhere:

sudo pacman -U --noconfirm golf-<version>-0-x86_64.pkg.tar.zst