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

Antonio Rojas arojas at archlinux.org
Thu Aug 23 08:08:48 UTC 2018


    Date: Thursday, August 23, 2018 @ 08:08:48
  Author: arojas
Revision: 373372

archrelease: copy trunk to community-staging-any

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

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

Copied: uranium/repos/community-staging-any/PKGBUILD (from rev 373371, uranium/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-08-23 08:08:48 UTC (rev 373372)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Grey Christoforo <first name [at] last name [dot] net>
+
+pkgname=uranium
+pkgver=3.4.1
+pkgrel=3
+pkgdesc="A Python framework for building Desktop applications."
+url="https://github.com/Ultimaker/Uranium"
+arch=('any')
+license=('AGPL')
+depends=('python' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'pyqt5-common' 'python-pyqt5' 'python-numpy' 'arcus')
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('7a97385b101a30008d1c0bb576d603b93ca2d0967b8c71faeb6760c9cc9ecb72')
+
+prepare() {
+  cd Uranium-${pkgver}
+  sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages,DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
+  sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura),DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/cura),g' CMakeLists.txt
+}
+
+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