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

Felix Yan felixonmars at archlinux.org
Wed Nov 18 17:46:24 UTC 2020


    Date: Wednesday, November 18, 2020 @ 17:46:24
  Author: felixonmars
Revision: 757142

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 757141, python-occ-core/trunk/PKGBUILD)

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

Copied: python-occ-core/repos/community-staging-x86_64/PKGBUILD (from rev 757141, python-occ-core/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-18 17:46:24 UTC (rev 757142)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pythonocc-core
+pkgname=python-${_pkgname#python}
+pkgver=7.4.1.r16.gfcf4e6ec
+_commit=fcf4e6ecf8518bbfb5fb7e4c55f9e79bd319eaa7
+pkgrel=2
+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