Skip to content

Conversation

@daniflorialopez
Copy link

Hi, I noticed the Arch Linux installation instructions in the README currently say:

curl 'https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wl-kbptr' -o PKGBUILD
makepkg -si

This command downloads the HTML rendering of PKGBUILD (<!DOCTYPE html> ...) instead of the raw file. Running makepkg then fails with:

/home/user/PKGBUILD: line 1: syntax error near unexpected token `newline'
/home/user/PKGBUILD: line 1: `<!DOCTYPE html>'

This PR updates the command to use the correct plain endpoint instead of tree and adds -L to follow redirects (the AUR’s plain endpoint redirects to the current commit). It also recommends the git clone method as the preferred approach since it fetches all necessary files.

The README currently suggests downloading the PKGBUILD from the AUR
using the 'tree' endpoint. This returns an HTML page rather than the raw
file, causing 'makepkg' to fail with a syntax error.

This updates the instructions to use the 'plain' endpoint and adds the
recommended 'git clone' approach, which ensures all auxiliary files are
fetched. It also includes the -L flag for curl so that redirects from
the AUR 'plain' endpoint are followed correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant