From 467e290216b2a646a5e6d1dab34091974a47fa5f Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Wed, 28 Jun 2017 16:43:13 +0100 Subject: [PATCH] New package: Uranium-2.7.0 --- .../Uranium/patches/cmake-python-lib-path.patch | 16 ++++++++++++++++ srcpkgs/Uranium/template | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/Uranium/patches/cmake-python-lib-path.patch create mode 100644 srcpkgs/Uranium/template diff --git a/srcpkgs/Uranium/patches/cmake-python-lib-path.patch b/srcpkgs/Uranium/patches/cmake-python-lib-path.patch new file mode 100644 index 00000000000..dd994528ba2 --- /dev/null +++ b/srcpkgs/Uranium/patches/cmake-python-lib-path.patch @@ -0,0 +1,16 @@ +diff --git CMakeLists.txt CMakeLists.txt +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -45,11 +45,7 @@ add_custom_target(extract-messages ${CMAKE_SOURCE_DIR}/scripts/extract-messages + # Build Translations + CREATE_TRANSLATION_TARGETS() + +-if(APPLE OR WIN32) +- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) +-else() +- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages) +-endif() ++install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) + install(FILES ${CMAKE_SOURCE_DIR}/cmake/UraniumTranslationTools.cmake + DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/ ) + install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium) diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template new file mode 100644 index 00000000000..f27e23347da --- /dev/null +++ b/srcpkgs/Uranium/template @@ -0,0 +1,16 @@ +# Template file for 'Uranium' +pkgname=Uranium +version=2.7.0 +revision=1 +python_version=3 +build_style=cmake +hostmakedepends="python3-setuptools" +makedepends="python3-devel" +depends="libArcus-python3 python3-numpy python3-PyQt5 python3-PyQt5-quick + python3-PyQt5-opengl python3-PyQt5-svg python3-scipy python3-numpy-stl" +short_desc="A Python framework for building Desktop applications" +maintainer="Karl Nilsson " +license="AGPL-3" +homepage="https://github.com/Ultimaker/Uranium" +distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz" +checksum=367a6408413bd5cfd8121745f2ae0d855ac0895c7c14326bfd4c9227223ed87b