Commit ae5083fc authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

source PKGBUILD before evaluating install and changelog files

This makes it possible to use e.g. install=$pkgname.install
parent 6f4e865f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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"