[aur-general] avoid usage of fakeroot: always use of build() and package() (Was: application as a TU)

Xyne xyne at archlinux.ca
Sun Nov 22 16:39:00 EST 2009

> This works only if there are only files in that directory. Subfolders
> are not copied. So one has to run "install" for each folder. "cp" copies
> everything - files and folders.
> -- 

I wrote a function to handle that at some point which I include in
PKGBUILDs on very rare occasions:

function _install_dir {
  for _file in $(find $_src_dir -type f)
    install -Dm644 $_file $_dest_file

Obviously it could be modified to accept a permissions argument as well.


More information about the aur-general mailing list