source PKGBUILD before evaluating install and changelog files

This makes it possible to use e.g. install=$pkgname.install
This commit is contained in:
Pierre Schmitz 2010-08-20 11:55:33 +02:00
parent 6f4e865ff9
commit ae5083fc11
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,7 @@ for f in ${source[@]}; do
fi
done
( . PKGBUILD
for i in 'changelog' 'install'; do
filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
for file in $filelist; do
@ -189,6 +190,7 @@ for i in 'changelog' 'install'; do
fi
done
done
)
chown -R nobody "$copydir/build"
chown -R nobody "$copydir/srcdest"