[arch-commits] Commit in uranium/repos (community-any community-any/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sat Mar 25 12:10:16 UTC 2017


    Date: Saturday, March 25, 2017 @ 12:10:15
  Author: jelle
Revision: 218735

archrelease: copy trunk to community-any

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

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

Copied: uranium/repos/community-any/PKGBUILD (from rev 218734, uranium/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-03-25 12:10:15 UTC (rev 218735)
@@ -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=2.4.0
+pkgrel=2
+pkgdesc="A Python framework for building Desktop applications."
+url="https://github.com/Ultimaker/Uranium"
+arch=('any')
+license=('AGPL')
+depends=('python' 'qt5-quickcontrols' 'pyqt5-common' 'python-pyqt5' 'python-numpy' 'arcus')
+makedepends=('cmake')
+source=("https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz")
+md5sums=('90b8aeb612a4639277b453fa416ff890')
+
+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