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

Antonio Rojas arojas at archlinux.org
Fri Mar 20 12:54:38 UTC 2020


    Date: Friday, March 20, 2020 @ 12:54:37
  Author: arojas
Revision: 601594

archrelease: copy trunk to community-staging-any

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

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

Copied: uranium/repos/community-staging-any/PKGBUILD (from rev 601593, uranium/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-03-20 12:54:37 UTC (rev 601594)
@@ -0,0 +1,40 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Grey Christoforo <first name [at] last name [dot] net>
+
+pkgname=uranium
+pkgver=4.4.0
+pkgrel=4
+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')
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz"
+        "fix-crash.patch::https://github.com/Ultimaker/Uranium/commit/78fa9ab2dd8ab117a512e0ae3ce9d8cb93dc89d4.patch")
+sha256sums=('6906804add202b19931e01844f418256168e560265b217e725a4d9d0acf21800'
+            '6318fac94328cf2e20ca80f8470637cb0a76429b1d022b94d52f0bcae3fe8e71')
+
+prepare() {
+  cd Uranium-${pkgver}
+  sed -i 's,/dist-packages,.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
+
+  patch -Np1 -i $srcdir/fix-crash.patch
+}
+
+build() {
+  cd Uranium-${pkgver}
+  mkdir -p build && cd build
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release
+  make
+}
+
+package() {
+  cd Uranium-${pkgver}/build
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list