PKGFILE: prevent out of tree builds

With makepkg is it possible to build sources away from the PKGFILE. The
previous behavior was crash on build if this was setup. With this
patch we prevent this possibility.

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
master
Silvio Fricke 2015-11-08 12:53:36 +01:00
parent 4cca17eeec
commit 0d5c02d3ab
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,13 @@ backup=(etc/dracut.conf)
source=()
md5sums=()

# out of tree builds disallowed for this PKGFILE
BUILDDIR="${PWD}"
PKGDEST="${PWD}"
SRCDEST=""
SRCPKGDEST=""
LOGDEST=""

pkgver() {
cd ..
desc="$(git describe)"