How to install PKGBUILD file downloaded manually?

Is it easy to install a PKGBUILD that is available on the web, but not officially in AUR?

As a result of problems with , inemum has provided Python SIP packages at and .

In half-year I've been on Manjaro, I've been lucky, finding everything I've needed already in AUR, and easy to install.

These dependencies seem to be required for Puddletag at , which was working, but then suddenly broke at an upgrade.

If this is already written up somewhere, I would appreciate a pointer! Thanks.

1 Like

To build package with PKGBUILD that doesn't come from AUR, I guess you don't have much choice but to use makepkg.

Once you have the PKGBUILD, you can build the package with the makepkg command. Once the package is built (it's a .pkg.tar.xz file), it can be installed with pamac install /path/to/package.pkg.tar.xz or pacman -U /path/to/package.pkg.tar.xz.

You may use -s with makepkg to install needed dependencies before building the package (or else, you would have to install each of them by yourself). You may also use -i to install the package built with makepkg right after.

Basically, to use this tool, you go into the directory that contain your PKGBUILD, then run the command. Do NOT use sudo with makepkg.

More info here about makepkg:


You can also run pamac build in the directory containing the PKGBUILD.


With the browser, I copied the files from ... ; and

Then, I thought that makepkg would be something that might already be in Manjaro.

$ cd Pkgbuild
$ ls
python2-sip-pyqt4.pkg  python-sip-pyqt4.pkg
$ makepkg python2-sip-pyqt4.pkg
==> ERROR: PKGBUILD does not exist.
$ makepkg

I guess not! Starling up pamac and searching up pkgbuild turns up a variety of hits ... but I'm not sure how to proceed.

Could you please provide some more hints?

You don't need to download the files referenced in the PKGBUILD. You just copy and paste the contents into a file called PKGBUILD, all upper case. Or just download it.

Then you switch the directory where you downloaded and run makepkg -si to install it.

For example you could do this:

mkdir python-sip-pyqt4
cd python-sip-pyqt4
makepkg -si
1 Like

Here's a demo on how to build a package with makepkg in your particular case. I've done the job in a slightly different way than dalto, but it gives the same result at the end.

But essentially, to build a package with makepkg, you do the following:

  • First, get the PKGBUILD with any appropriate method;
  • Once you have hit, in a terminal, you go into the directory that contain the PKGBUILD, then execute makepkg (+ any options that you want to use).

See the last line of makepkg -h, you are missing the -p option to specify a custom pkgbuild name

@dalto Thanks. Your directions worked. After that, I used Pamac to install Puddletag.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by