[aur-general] PKGBUILD and git-lfs

LoneVVolf lonewolf at xs4all.nl
Tue May 31 23:14:08 UTC 2016


On 27-05-16 23:35, Storm Dragon wrote:
> Howdy,
> It says the directory already exists and is not empty. Here's the 
> PKGBUILD I was working on with  the git clone stuff done in the 
> prepare() function:
> Oh, and the command I'm using is just makepkg -s
> Thanks
> Storm
In the prepare()function ,use something like this :

   if [[ -d "$_gitname" ]]; then
     cd "$_gitname" && git pull origin
   else
     git clone "$_gitroot" "$_gitname"
   fi

(copied from a git pkgbuild from before makepkg understood how to deal 
with vcs sources)

LW


More information about the aur-general mailing list