summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gläßle2017-05-31 11:42:18 +0200
committerThomas Gläßle2017-05-31 11:43:58 +0200
commit068bd484562768524949e243160775b684734f03 (patch)
tree04383aa9f5255ab7ebee718803a1494f17edd8d6
parent1290fc68729aa0cf3328a211cdb08ecd04ca2595 (diff)
downloadaur-068bd484562768524949e243160775b684734f03.tar.gz
Move cmake call from `prepare()` to `build()`
This interacts a lot better with makepkg usage: makepkg -o makepkg -e
-rw-r--r--PKGBUILD8
1 files changed, 3 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6e5c611b0a5..1ae001ceb22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,10 +24,12 @@ prepare() {
cd ${srcdir}/${extract}
find . -name '._*' -print0 | xargs -0 -r rm
patch -p1 < ${srcdir}/cmake_fix_gc.patch
+}
+build() {
+ rm -rf ${srcdir}/build
mkdir -p ${srcdir}/build
cd ${srcdir}/build
-
cmake \
-DMADX_STATIC=OFF \
-DMADX_ONLINE=OFF \
@@ -39,10 +41,6 @@ prepare() {
-DMADX_INSTALL_DOC=OFF \
-DCMAKE_INSTALL_RPATH='$ORIGIN' \
${srcdir}/${extract}
-}
-
-build() {
- cd ${srcdir}/build
make
}