summaryrefslogtreecommitdiff
path: root/uranium
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-01-15 20:11:34 +0100
committerErich Eckner <erich.eckner.ext@bestsecret.com>2023-01-18 10:15:05 +0100
commit48e449263b7cc12a418b34a36174c4e3dbc04957 (patch)
tree7df4600ad730c04e655c999fc138881b0e11cc73 /uranium
parent482311a2ba2c9fe274a11752b16c7a5c553599f2 (diff)
downloadarchlinuxewe-48e449263b7cc12a418b34a36174c4e3dbc04957.tar.xz
uranium new
Diffstat (limited to 'uranium')
-rw-r--r--uranium/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/uranium/PKGBUILD b/uranium/PKGBUILD
new file mode 100644
index 000000000..5d3c4bef2
--- /dev/null
+++ b/uranium/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Jelle van der Waa <jelle@vdwaa.nl>
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Grey Christoforo <first name [at] last name [dot] net>
+
+pkgname=uranium
+pkgver=5.0.0
+pkgrel=2
+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' 'ninja')
+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() {
+ cmake -S Uranium-${pkgver} -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr
+
+ cmake --build build
+}
+
+check() {
+ cd build
+ # all tests fail atm
+ # ctest
+}
+
+package() {
+ DESTDIR="${pkgdir}" cmake --install build
+
+# Move cmake module to right dir
+ mv "$pkgdir"/usr/share/cmake{-*,}
+}
+
+# vim:set ts=2 sw=2 et: