Package Details: adguard-cli-bin 1.0.16-2

Git Clone URL: https://aur.archlinux.org/adguard-cli-bin.git (read-only, click to copy)
Package Base: adguard-cli-bin
Description: Surf the Web ad-free and safely. Shields up
Upstream URL: https://adguard.com/
Submitter: bash000000
Maintainer: bash000000
Last Packager: bash000000
Votes: 3
Popularity: 0.39
First Submitted: 2025-03-10 12:50 (UTC)
Last Updated: 2025-05-13 09:51 (UTC)

Latest Comments

thebrownmamba commented on 2025-07-29 11:57 (UTC) (edited on 2025-07-29 12:00 (UTC) by thebrownmamba)

Hi, currently with this PKGBUILD, the "auto" proxy_mode does not work because adguard-cli.sig could not be found by the binary.

https://github.com/AdguardTeam/AdGuardCLI/issues/58

I've attempted to make an alternative PKGBUILD so that it can actually run successfully:

_scriptname="${pkgname}-${pkgver}-install.sh"

source=("${_scriptname}::https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/release/install.sh")
sha256sums=('182ea8c80423644ec49b656db82ac71d9142a72a5652b38b2266459e9b6a94ef')  

_file1="adguard-cli"
_file2="adguard-cli.sig"
_file3="adguard_root_helper"
_file4="adguard_root_helper.sig"
_file5="bash-completion.sh"
_file6="certutil"
_file7="certutil.sig"
_file8="defaults.zip"

package() {
  sed -i '/read -r response < \/dev\/tty/ i response="y"' "${_scriptname}"
  sed -i '/read -r response < \/dev\/tty/ d' "${_scriptname}"

  chmod +x "${_scriptname}"
  echo N | ./"${_scriptname}" -o "."

  cd ${srcdir}/${_file1}

  install -D "${_file1}" "${pkgdir}/usr/share/${_file1}/${_file1}"
  install -D "${_file2}" "${pkgdir}/usr/share/${_file1}/${_file2}"
  install -D "${_file3}" "${pkgdir}/usr/share/${_file1}/${_file3}"
  install -D "${_file4}" "${pkgdir}/usr/share/${_file1}/${_file4}"
  install -D "${_file5}" "${pkgdir}/usr/share/${_file1}/${_file5}"
  install -D "${_file6}" "${pkgdir}/usr/share/${_file1}/${_file6}"
  install -D "${_file7}" "${pkgdir}/usr/share/${_file1}/${_file7}"
  install -D "${_file8}" "${pkgdir}/usr/share/${_file1}/${_file8}"

}

What I did differently is that I used the original install script instead, changed the output directory of the script to the current temporary build directory, and then modified the install script so that the symlink prompt by the script is automatically accepted.

But this PKGBUILD probably contains a lot of bad practices since this is literally my first attempt at a PKGBUILD. auto proxy_mode works though, so if you have the time can you update the package so that auto proxy_mode works? Thank you!