From: Silvio Fricke Date: Sun, 8 Nov 2015 11:53:36 +0000 (+0100) Subject: PKGFILE: prevent out of tree builds X-Git-Tag: 044~100^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F101%2Fhead;p=thirdparty%2Fdracut.git 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 --- diff --git a/PKGBUILD b/PKGBUILD index c625bdb95..05a32b08d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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)"