[arch-general] makechrootpkg and multiple sources, a bug?
    Ionuț Bîru 
    ibiru at archlinux.org
       
    Sun Feb 20 12:06:51 EST 2011
    
    
  
On 02/20/2011 07:04 PM, Magnus Therning wrote:
>>>> The source array is modified based on files in the dir holding the
>>>> PKGBUILD, like this:
>>>>
>>>> if [[ -f my.patch ]]; then
>>>> sources=(${sources[@] my.patch)
>>>> fi
>>>>
> I modified the little build script used by makechrootpkg
> (/chrootbuild) to export SRCDEST, but that still didn't do it.  How
> can I detect within a PKGBUILD that the build is invoked by
> makechrootpkg in an elegant way?
>
> /M
>
i don't understand why you want to split like that the sources array. 
Just declare it once and get over it.
sources=(link1 my.patch)
makepkg -g >> PKGBUILD
-- 
Ionuț
    
    
More information about the arch-general
mailing list