[arch-commits] Commit in uranium/trunk (PKGBUILD)

Maxime Gauduin alucryd at gemini.archlinux.org
Mon Jun 6 08:49:00 UTC 2022


    Date: Monday, June 6, 2022 @ 08:48:59
  Author: alucryd
Revision: 1224694

uranium 5.0.0-2: use ninja

Modified:
  uranium/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-06 08:41:54 UTC (rev 1224693)
+++ PKGBUILD	2022-06-06 08:48:59 UTC (rev 1224694)
@@ -4,7 +4,7 @@
 
 pkgname=uranium
 pkgver=5.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python framework for building 3D printing related applications"
 url="https://github.com/Ultimaker/Uranium"
 arch=('any')
@@ -11,7 +11,7 @@
 license=('LGPL')
 depends=('python' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'python-pyqt5' 'python-numpy'
          'arcus' 'python-shapely' 'python-scipy' 'python-cryptography' 'python-certifi')
-makedepends=('cmake')
+makedepends=('cmake' 'ninja')
 checkdepends=('mypy' 'python-pytest' 'python-twisted')
 options=('debug')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz")
@@ -23,26 +23,21 @@
 }
 
 build() {
-  cd Uranium-${pkgver}
-  mkdir -p build && cd build
-
-  cmake .. \
-    -DCMAKE_INSTALL_PREFIX=/usr \
+  cmake -S Uranium-${pkgver} -B build -G Ninja \
     -DCMAKE_BUILD_TYPE=None \
-    -DBUILD_TESTS=ON
+    -DCMAKE_INSTALL_PREFIX=/usr
 
-  make
+  cmake --build build
 }
 
 check() {
-  cd Uranium-${pkgver}/build
-  # few tests fail atm
-  #make CTEST_OUTPUT_ON_FAILURE=TRUE test
+  cd build
+  # all tests fail atm
+  # ctest
 }
 
 package() {
-  cd Uranium-${pkgver}/build
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="${pkgdir}" cmake --install build
 
 # Move cmake module to right dir
   mv "$pkgdir"/usr/share/cmake{-*,}



More information about the arch-commits mailing list