Got this errors today:
$ pamac build tigervnc
Install tigervnc from community ? [y/N] y
Preparing...
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/community.db': Permission denied
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/core.db': Permission denied
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/extra.db': Permission denied
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/multilib.db': Permission denied
Warning: tigervnc-1.12.0-3 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...
To reinstall (1):
tigervnc 1.12.0-3 community 2.3 MB
Total download size: 2.3 MB
Apply transaction ? [y/N] y
Download of tigervnc (1.12.0-3) started
Download of tigervnc (1.12.0-3) finished
Checking keyring... [1/1]
Checking integrity... [1/1]
Loading packages files... [1/1]
Checking file conflicts... [1/1]
Checking available disk space... [1/1]
Reinstalling tigervnc (1.12.0-3)... [1/1]
Running post-transaction hooks...
Reloading system manager configuration... [1/4]
Arming ConditionNeedsUpdate... [2/4]
Updating icon theme caches... [3/4]
Updating the desktop file MIME type cache... [4/4]
Transaction successfully finished.