summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2020-06-11 17:15:33 +0200
committerbartus2020-06-11 17:15:33 +0200
commit3c292425485b86a901c3d15a9acab15b56af9467 (patch)
tree899f59a44a57202983535475d923a346d66ebcd4
parentb7c04585a1c9d09d55b964971c4f1131ce56cc38 (diff)
downloadaur-3c292425485b86a901c3d15a9acab15b56af9467.tar.gz
Switch to ninja build system.
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5dff56d7ef6..0a474d00973 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,6 +11,7 @@ pkgbase = luxcorerender
makedepends = git
makedepends = doxygen
makedepends = cmake
+ makedepends = ninja
makedepends = pyside2-tools
depends = opencl-icd-loader
depends = openimagedenoise
diff --git a/PKGBUILD b/PKGBUILD
index 8aeb3d0cfa7..1e8b0a4bf5d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,7 @@ url="https://www.luxcorerender.org/"
license=('Apache')
depends+=(openimagedenoise openimageio boost-libs blosc embree glfw gtk3)
optdepends+=("pyside2: for pyluxcoretools gui")
-makedepends+=(boost git doxygen cmake pyside2-tools)
+makedepends+=(boost git doxygen cmake ninja pyside2-tools)
provides=(luxrays)
source=("https://github.com/LuxCoreRender/LuxCore/archive/${pkgname}_v${_pkgver}.tar.gz"
"python.patch"
@@ -45,8 +45,8 @@ prepare() {
build() {
_pyver=$(python -c "from sys import version_info; print(\"%d%d\" % (version_info[0],version_info[1]))")
CMAKE_FLAGS+=("-DPYTHON_V=${_pyver}")
- cmake "${CMAKE_FLAGS[@]}" -S "${srcdir}"/${_name} -B build
- make
+ cmake "${CMAKE_FLAGS[@]}" -S "${srcdir}"/${_name} -B build -G Ninja
+ ninja "$(grep -oP -- '-+[A-z]+ ?[0-9]*'<<<"${MAKEFLAGS:--j1}")" -C "${srcdir}/build"
}
package() {