In my case it installed the package ant (v1.10.5-1) as makedependency, which provides apache-ant and has no such file /etc/profile.d/apache-ant.sh. You could uncomment the correspondent line 26 in PKGBUILD's build() as workaround:
. /etc/profile.d/apache-ant.sh
As alternative, you can replace the makedepend with package apache-ant-10 (also v1.10.5-1), which still provides the missing file /etc/profile.d/apache-ant.sh.
But then I had to set the JAVA_HOME environment variable (jdk8-openjdk/jre8-openjdk):
export JAVA_HOME=/usr/lib/jvm/default
and import the missing and unknown public key A2115AE15F6B8B72 for downloaded file apache-ant-1.10.5-src.tar.bz2 in the local keyring:
gpg --recv-keys A2115AE15F6B8B72
The file /etc/profile.d/apache-ant.sh only sets the proper path into the environment variable ANT_HOME. I think both workarounds produce the same results, because they are the same ant version and both set a valid ANT_HOME environment variable, whilst the former uses another config file and doesn't know the file jitsi wants to source while build. As long as you don't want to change the default ant paths you should be fine with both solutions.
Pinned Comments
figue commented on 2020-12-12 17:04 (UTC) (edited on 2021-01-03 19:13 (UTC) by figue)
I've built with jdk8... Like this:
But if you want to execute jitsi, it's better to set it globally:
archlinux-java set java-8-openjdk
See pinned comment.