Is it okay to do it in the prepare() function in PKGBUILD? I did it like this and it works: wget https://aur.archlinux.org/cgit/aur.git/snapshot/libgcrypt11.tar.gz -O $srcdir/libgcrypt11.tar.gz tar -zxvf $srcdir/libgcrypt11.tar.gz cd $srcdir/libgcrypt11 makepkg -sri Thanks! On Wed, Nov 4, 2015 at 3:59 PM, Giancarlo Razzolini <grazzolini@gmail.com> wrote:
What is the correct way to install a dependency if the dependency
Em 04-11-2015 12:06, Ole Jon Bjørkum escreveu: package
is in AUR? Can I do it in the .install file?
No, you can't do it in the .install file. The user is expected to either use an AUR helper or to download the PKGBUILD for each dependency (and sub dependencies, and so on) and install them before installing your package, them being on AUR or on the official repos.
Cheers, Giancarlo Razzolini