Blame 0087-PKGFILE-prevent-out-of-tree-builds.patch

Harald Hoyer bb31e7
From 0d5c02d3ab7b71a09d5d7b52a771f0fe0f32e4e2 Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: Silvio Fricke <silvio.fricke@gmail.com>
Harald Hoyer bb31e7
Date: Sun, 8 Nov 2015 12:53:36 +0100
Harald Hoyer bb31e7
Subject: [PATCH] PKGFILE: prevent out of tree builds
Harald Hoyer bb31e7
Harald Hoyer bb31e7
With makepkg is it possible to build sources away from the PKGFILE. The
Harald Hoyer bb31e7
previous behavior was crash on build if this was setup. With this
Harald Hoyer bb31e7
patch we prevent this possibility.
Harald Hoyer bb31e7
Harald Hoyer bb31e7
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 PKGBUILD | 7 +++++++
Harald Hoyer bb31e7
 1 file changed, 7 insertions(+)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/PKGBUILD b/PKGBUILD
Harald Hoyer bb31e7
index c625bdb..05a32b0 100644
Harald Hoyer bb31e7
--- a/PKGBUILD
Harald Hoyer bb31e7
+++ b/PKGBUILD
Harald Hoyer bb31e7
@@ -14,6 +14,13 @@ backup=(etc/dracut.conf)
Harald Hoyer bb31e7
 source=()
Harald Hoyer bb31e7
 md5sums=()
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
+# out of tree builds disallowed for this PKGFILE
Harald Hoyer bb31e7
+BUILDDIR="${PWD}"
Harald Hoyer bb31e7
+PKGDEST="${PWD}"
Harald Hoyer bb31e7
+SRCDEST=""
Harald Hoyer bb31e7
+SRCPKGDEST=""
Harald Hoyer bb31e7
+LOGDEST=""
Harald Hoyer bb31e7
+
Harald Hoyer bb31e7
 pkgver() {
Harald Hoyer bb31e7
   cd ..
Harald Hoyer bb31e7
   desc="$(git describe)"