Skip to content

Instantly share code, notes, and snippets.

@android10
Last active February 16, 2024 03:52
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save android10/9c906b5f281e5efcab4b561837c307fa to your computer and use it in GitHub Desktop.
Save android10/9c906b5f281e5efcab4b561837c307fa to your computer and use it in GitHub Desktop.
SCRIPT to install Pacaur on Arch Linux: https://wiki.archlinux.org/index.php/AUR_helpers
#ATTENTION: Check the Troubleshooting items below if you have problems, you can also visit my website where I wrote about it.
# LINK: https://fernandocejas.com/blog/engineering/2020-12-28-install-arch-linux-full-disk-encryption/#aur-helper
#!/bin/bash
#Make sure the system is up to date.
sudo pacman -Syu --noconfirm
#Install dependency packages we'll need to build Pacaur on Arch.
sudo pacman -S binutils make gcc fakeroot expac yajl git --noconfirm
#Create a temporary working directory for installing Pacaur.
mkdir -p ~/tmp/pacaur_install
cd ~/tmp/pacaur_install
#Install pacaur from AUR: Download the files from git and build a .tar.xz file then install it.
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur
makepkg -i PKGBUILD --noconfirm
sudo pacman -U pacaur*.tar.xz --noconfirm
#Now clean up system: deleting temporary directory.
rm -r ~/tmp/pacaur_install
cd -
@android10
Copy link
Author

@StarleyRibero I have the Troubleshooting 2 that explains step by step how to install auracle. Cower is not necessary anymore. That might have caused your issue.

I would remove what you installed with:

pacman -Rns "your_package"

Then do a fresh install as detailed here but without installing cower, you do not need it anymore.

@StarleyRibeiro
Copy link

StarleyRibeiro commented Apr 17, 2020

@android10

Hi again,

Tks a lot for your feedback. I followed the suggestion of psykoterro and installed the trizen. I had no troubles during instalation and apparently, everything is fine so far.

I just have one point of consideration of related to trizen, it's written in pear, and I preffer (that's my oppinion) package managers which are writter in bash, because that's the native language of shell, but I can survive with this.

I another situation will try again to install pacaur.

brgds,
Starley

@aiky967
Copy link

aiky967 commented Feb 13, 2022

I'm following your steps. I'm at makepkg PKGBUILD --skippgpcheck --noconfirm I got this error

Making package: auracle-git r366.8739929-4 (Sunday 13 February 2022 10:51:10 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating auracle git repo...
Fetching origin
-> Found 0001-Update-abseil-cpp-to-LTS-20211102.0-version.patch
-> Found 0002-Force-fmt-dependency-to-static.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with b2sums...
auracle ... Skipped
0001-Update-abseil-cpp-to-LTS-20211102.0-version.patch ... Passed
0002-Force-fmt-dependency-to-static.patch ... Passed
==> Extracting sources...
-> Creating working copy of auracle git repo...
Reset branch 'makepkg'
==> Starting prepare()...
patching file meson.build
patching file subprojects/abseil-cpp.wrap
patching file meson.build
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Directory does not contain a valid build tree:
/home/aiky/tmp/pacaur_install/auracle-git/src/auracle/build
==> ERROR: A failure occurred in build().
Aborting..

I installed all the dependencies as you said that were missing.

@android10
Copy link
Author

hey @aiky967 I would suggest to use yay or paru, pacaur has not been maintained for a while so I would suggest to the other alternatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment