When I run
makepkg -cf, I get an error:
==> ERROR: PKGBUILD does not exist.
But if I run
makepkg -p PKGBUILD.asc it works.
Can someone explain to me someone why the first doesn't work?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
How I solved it
The problem is that when downloading
PKGBUILD, the browser added an unwanted extension to the file which turned out to be
PKGBUILD.asc, the solution is to simply remove the file extension i.e. rename
PKGBUILD, you may have another extension that does not matter, the important thing is to remove it.
For More Information
makepkg is a script that automates the building of packages Arch. When you use it without telling it which file to build, you are essentially telling it do nothing, which leaves you with the error you see here.
This error explains it is trying to call
PKGBUILD which is a package build description file that needs to be made before the package is built by
makepkg. When you used the
-p flag you are telling
makepkg to instead build the package using
buildscript in place of
I highly suggest reading the man page for
makepkg by running
man makepkg so that you can learn more about this tool for future use. I will link it here for you as well https://www.archlinux.org/pacman/makepkg.8.html
If available, try a
-bin package option. Whatever you are trying to compile might already be compiled. That is one option, or not...
This has been a problem in the past for various reasons. Consider the forum on Arch...
I was running
make -si specifically for
yay per the install instructions on GitHub. Searching this out led me to this question, so others might have a question also.
Maybe something worked in the past and maybe some dependency broke an update, et cetera.
I solved the problem by changing from the
yay repository to the
yay-bin repository, per the same instructions page. That solved it.