[arch-commits] Commit in python-occ-core/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Wed Nov 18 17:29:18 UTC 2020


    Date: Wednesday, November 18, 2020 @ 17:29:17
  Author: foutrelis
Revision: 757139

upgpkg: python-occ-core 7.4.1.r16.gfcf4e6ec-1: bump to git master

Brings opencascade 7.5.0 compatibility.

Modified:
  python-occ-core/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-18 16:42:23 UTC (rev 757138)
+++ PKGBUILD	2020-11-18 17:29:17 UTC (rev 757139)
@@ -2,19 +2,32 @@
 
 _pkgname=pythonocc-core
 pkgname=python-${_pkgname#python}
-pkgver=7.4.0
+pkgver=7.4.1.r16.gfcf4e6ec
+_commit=fcf4e6ecf8518bbfb5fb7e4c55f9e79bd319eaa7
 pkgrel=1
 pkgdesc='Python package for 3D CAD/BIM/PLM/CAM'
 arch=('x86_64')
 url='https://github.com/tpaviot/pythonocc-core'
 license=('LGPL3')
-depends=('python' 'opencascade' 'libxmu')
-makedepends=('cmake' 'swig')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('a25705479e32f93422497f7828062188eb99ad22f679996ca35d63a57c7335cfe0d965d8b4f88967e4a44bec3ebaec2ee47572e61dce275c6c645d983e1480c7')
+depends=('python' 'opencascade' 'libxmu' 'libxi')
+# rapidjson appears to be unused but an opencascade
+# header that references it gets dragged in somehow
+makedepends=('cmake' 'swig' 'rapidjson' 'git')
+#source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+source=("git+https://github.com/tpaviot/pythonocc-core#commit=$_commit")
+sha512sums=('SKIP')
 
+pkgver() {
+  cd $_pkgname-$pkgver
+  git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  mv $_pkgname $_pkgname-$pkgver
+  mkdir $_pkgname-$pkgver/build
+}
+
 build() {
-  mkdir $_pkgname-$pkgver/build
   cd $_pkgname-$pkgver/build
 
   cmake .. \



More information about the arch-commits mailing list