[arch-commits] Commit in uranium/repos (2 files)
Maxime Gauduin
alucryd at gemini.archlinux.org
Mon Jun 6 08:36:47 UTC 2022
Date: Monday, June 6, 2022 @ 08:36:47
Author: alucryd
Revision: 1224689
archrelease: copy trunk to community-staging-any
Added:
uranium/repos/community-staging-any/
uranium/repos/community-staging-any/PKGBUILD
(from rev 1224688, uranium/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: uranium/repos/community-staging-any/PKGBUILD (from rev 1224688, uranium/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2022-06-06 08:36:47 UTC (rev 1224689)
@@ -0,0 +1,51 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Grey Christoforo <first name [at] last name [dot] net>
+
+pkgname=uranium
+pkgver=5.0.0
+pkgrel=1
+pkgdesc="Python framework for building 3D printing related 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')
+options=('debug')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('3a6482c0698320ecb87f41f725565fdee1e99cb4258043130816d5181ead8603')
+
+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=None \
+ -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