[arch-commits] Commit in python-occ-core/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 8 04:37:14 UTC 2021


    Date: Wednesday, December 8, 2021 @ 04:37:14
  Author: felixonmars
Revision: 1065609

archrelease: copy trunk to community-staging-x86_64

Added:
  python-occ-core/repos/community-staging-x86_64/
  python-occ-core/repos/community-staging-x86_64/PKGBUILD
    (from rev 1065608, python-occ-core/trunk/PKGBUILD)

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

Copied: python-occ-core/repos/community-staging-x86_64/PKGBUILD (from rev 1065608, python-occ-core/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-08 04:37:14 UTC (rev 1065609)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pythonocc-core
+pkgname=python-${_pkgname#python}
+pkgver=7.5.1.r90.g141c53f7
+_commit=141c53f716ca4c138a6ddee2ce6ed1d3c28944e8
+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' '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() {
+  cd $_pkgname-$pkgver/build
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release
+
+  make
+}
+
+package() {
+  cd $_pkgname-$pkgver/build
+
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list