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

Maxime Gauduin alucryd at gemini.archlinux.org
Mon Jun 6 08:32:26 UTC 2022


    Date: Monday, June 6, 2022 @ 08:32:24
  Author: alucryd
Revision: 1224686

upgpkg: arcus 5.0.0-1

Modified:
  arcus/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-06 06:52:18 UTC (rev 1224685)
+++ PKGBUILD	2022-06-06 08:32:24 UTC (rev 1224686)
@@ -1,43 +1,46 @@
 # Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 # Contributor: Grey Christoforo <first name [at] last name [dot] net>
 
 # upstreamed renamed to libarcus
 pkgname=arcus
-pkgver=4.13.1
-pkgrel=2
+pkgver=5.0.0
+pkgrel=1
 pkgdesc="Communication library between internal components for Ultimaker software"
 url="https://github.com/Ultimaker/libArcus"
 arch=('x86_64')
 license=('LGPL')
-makedepends=('cmake' 'sip4')
-depends=('python' 'protobuf' 'python-sip4')
+makedepends=('cmake' 'git' 'ninja')
+depends=('python' 'protobuf')
 options=('debug')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/libArcus/archive/${pkgver}.tar.gz"
         protobuf-3.18.patch)
-sha512sums=('ffb14595f23c47f71082b994eae01471f45e2e9e1ae9a8ad01df577b9445594c30173388beab016a92be9723638ca6e46b5cecddddc6adc97e9d212fc0fa23fa'
+sha512sums=('ffa22847693b4368966e02667ab44e0ce8da82210936da7364ee405acb38286e0e3a05aadbdf56f2a2fcafa8a28b1e4fa294609e1181a68a56dc0ad591e5556f'
             '5aa03da6a8db4fd3145c61bca587aac6c622536dc8211ca19be2c37ce33bf8a53508a95aa35d40d7972c7f0fea3e66ee0c506eda932be35751238f4d7f7e0d61')
 
 prepare() {
+  export _sitelib="$(python -c 'import site; print(site.getsitepackages()[0])')"
+
+  python -m venv --system-site-packages .venv
+  source .venv/bin/activate
+  python -m pip install sip==6.5.1
+
   cd libArcus-${pkgver}
-  mkdir build
   patch -Np1 -i ../protobuf-3.18.patch
 }
 
 build() {
-  cd libArcus-${pkgver}/build
+  cmake -S libArcus-${pkgver} -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib/ \
+    -DPython_SITELIB_LOCAL="${_sitelib}"
 
-  cmake .. \
-  -DCMAKE_INSTALL_PREFIX=/usr \
-  -DCMAKE_BUILD_TYPE=None \
-  -DBUILD_EXAMPLES=OFF  \
-  -DCMAKE_INSTALL_LIBDIR=/usr/lib/
-
-  make
+  cmake --build build
 }
 
 package() {
-  cd libArcus-${pkgver}/build
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="${pkgdir}" cmake --install build
 
   install -Dm644 "${srcdir}/libArcus-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list