[arch-commits] Commit in uranium/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Thu Dec 16 14:56:25 UTC 2021


    Date: Thursday, December 16, 2021 @ 14:56:25
  Author: arojas
Revision: 1074505

archrelease: copy trunk to community-staging-any

Added:
  uranium/repos/community-staging-any/
  uranium/repos/community-staging-any/PKGBUILD
    (from rev 1074504, uranium/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: uranium/repos/community-staging-any/PKGBUILD (from rev 1074504, uranium/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-16 14:56:25 UTC (rev 1074505)
@@ -0,0 +1,49 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Grey Christoforo <first name [at] last name [dot] net>
+
+pkgname=uranium
+pkgver=4.11.0
+pkgrel=5
+pkgdesc="A Python framework for building Desktop applications."
+url="https://github.com/Ultimaker/Uranium"
+arch=('any')
+license=('LGPL')
+depends=('python' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'python-pyqt5' 'python-numpy'
+         'arcus' 'python-shapely' 'python-scipy' 'python-cryptography' 'python-certifi')
+makedepends=('cmake')
+checkdepends=('mypy' 'python-pytest' 'python-twisted')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('1765d563a36c3158ea8abe4d87b0e3f5e0e595a1c7584b9bd672331e300c0677')
+
+prepare() {
+  cd Uranium-${pkgver}
+  sed -i 's,/dist-packages,.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
+}
+
+build() {
+  cd Uranium-${pkgver}
+  mkdir -p build && cd build
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTS=ON
+
+  make
+}
+
+check() {
+  cd Uranium-${pkgver}/build
+  # few tests fail atm
+  #make CTEST_OUTPUT_ON_FAILURE=TRUE test
+}
+
+package() {
+  cd Uranium-${pkgver}/build
+  make DESTDIR="${pkgdir}" install
+
+# Move cmake module to right dir
+  mv "$pkgdir"/usr/share/cmake{-*,}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list