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

Allan McRae allan at archlinux.org
Sun Nov 22 06:30:39 EST 2009


vlad wrote:
> Hi all,
> 
> On Sun, Nov 22, 2009 at 11:14:52AM +0100, hollunder at gmx.at wrote:
>> On Sun, 22 Nov 2009 20:12:24 +1000
>> Allan McRae <allan at archlinux.org> wrote:
>>
>>> If it breaks stuff, then you should tell upstream that they makefile
>>> is crap.
>> So I guess this means it breaks?
>> I usually do. You'd be surprised how many don't know about DESTDIR and
>> use cp.
> 
> However, "install" is quite inconvenient when copying directories with many
> files inside. Simply running "cp" and then changing permissions with
> "
> find ${pkgdir}/.../ -type d -exec chmod 755 {} \;
> find ${pkgdir}/.../ -type f -exec chmod 644 {} \;
> "
> is a reasonable workaround, at least for me.
> Vlad

read "man install":
e.g.
install -t $pkgdir/target src/dir/*




More information about the aur-general mailing list