makechrootpkg: Add hack for svn sources and makepkg 4.1.1

This commit is contained in:
Jan Alexander Steffens (heftig) 2013-05-09 02:29:52 +02:00
parent fc71be3479
commit 7a3f524201
1 changed files with 11 additions and 0 deletions

View File

@ -276,6 +276,17 @@ _chrootbuild() {
ln -sft /srcdest /srcdest_host/*
ln -sft /startdir /startdir_host/*
# XXX: Keep svn sources writable
# Since makepkg 4.1.1 they get checked out via cp -a, copying the symlink
for dir in /srcdest /startdir; do
cd $dir
for svndir in */.svn; do
rm ${svndir%/.svn}
cp -a ${dir}_host/${svndir%/.svn} .
chown -R nobody ${svndir%/.svn}
done
done
cd /startdir
# XXX: Keep PKGBUILD writable for pkgver()