git » python-pivy.git » commit 09ac5a0

upgpkg: 0.6.9.a0-1

author David Runge
2024-02-26 12:49:45 UTC
committer David Runge
2024-02-26 12:49:45 UTC
parent 687964e7a5be987316344e795d52bf618bb1dd2c

upgpkg: 0.6.9.a0-1

Switch to pre-release version to be able to use Qt6 support (as e.g.
soqt relies on it already).
Build using cmake directly as setuptools integration is entirely broken.
Consolidate dependencies.

.SRCINFO +23 -0
PKGBUILD +39 -9

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..40bd7a2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = python-pivy
+	pkgdesc = Bindings to Coin3D
+	pkgver = 0.6.9.a0
+	pkgrel = 1
+	url = https://github.com/coin3d/pivy
+	arch = x86_64
+	license = ISC
+	makedepends = cmake
+	makedepends = glu
+	makedepends = swig
+	depends = coin
+	depends = gcc-libs
+	depends = glibc
+	depends = pyside2
+	depends = pyside6
+	depends = python
+	depends = python-numpy
+	depends = qt6-base
+	depends = soqt
+	source = python-pivy-0.6.9.a0.tar.gz::https://github.com/coin3d/pivy/archive/refs/tags/0.6.9.a0.tar.gz
+	b2sums = 1e72ff67bfb28a4a193e08a073705d6c82d65297090ca90734b6f7b8c31b79102ca0aecc5e6a192f9db45859afbec151318b34188fa7e92214fc3cb6db0faf05
+
+pkgname = python-pivy
diff --git a/PKGBUILD b/PKGBUILD
index 9c64bac..3653db6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,50 @@
 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
 # Contributor: Grey Christoforo
 
+_name=pivy
 pkgname=python-pivy
-pkgver=0.6.8
-pkgrel=2
+pkgver=0.6.9.a0
+pkgrel=1
 pkgdesc='Bindings to Coin3D'
 arch=(x86_64)
 license=(ISC)
 url='https://github.com/coin3d/pivy'
-depends=(python soqt)
-makedepends=(cmake git glu python-setuptools swig)
-source=("git+$url#commit=83e99c18545bb66145716123151f6635c367533b") # tag: 0.6.8
-b2sums=('SKIP')
+depends=(
+  coin
+  gcc-libs
+  glibc
+  pyside2
+  pyside6
+  python
+  python-numpy
+  qt6-base
+  soqt
+)
+makedepends=(
+  cmake
+  glu
+  swig
+)
+source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz)
+b2sums=('1e72ff67bfb28a4a193e08a073705d6c82d65297090ca90734b6f7b8c31b79102ca0aecc5e6a192f9db45859afbec151318b34188fa7e92214fc3cb6db0faf05')
+
+build() {
+  local cmake_options=(
+    -B build
+    -D CMAKE_BUILD_TYPE=None
+    -D CMAKE_INSTALL_PREFIX=/usr
+    -D PIVY_USE_QT6=ON
+    -W no-dev
+  )
+
+  # NOTE: out-of-tree build broken: https://github.com/coin3d/pivy/issues/72
+  cd $_name-$pkgver
+  cmake "${cmake_options[@]}"
+  cmake --build build --verbose
+}
 
 package() {
-  cd pivy
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd $_name-$pkgver
+  DESTDIR="$pkgdir" cmake --install build
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
 }