summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxwell Pray2018-03-26 12:35:16 -0700
committerMaxwell Pray2018-03-26 12:35:16 -0700
commitff839427cdc6589b8e55db840a665d7d99b8e84b (patch)
treeb546230d3a881c064673d5e005d895272fcda97f
parentf7187861e31b28678d43ab7ebc973ebc6fab9897 (diff)
downloadaur-ff839427cdc6589b8e55db840a665d7d99b8e84b.tar.gz
Remove ${srcdir}/build directory during build.
-rw-r--r--PKGBUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f58808ef88d1..16ab97af1e85 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -127,6 +127,8 @@ build() {
EXTENSION_DIR=${_optdir}/usr/lib/php/modules
export EXTENSION_DIR
+ [[ -d ${srcdir}/build ]] && rm -r ${srcdir}/build
+
mkdir ${srcdir}/build
cd ${srcdir}/build
ln -s ../${_pkgbase}-${pkgver}/configure