2023-05-15 19:52:55 +00:00
|
|
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
2024-11-01 14:11:51 +00:00
|
|
|
# Maintainer:
|
2023-05-15 19:52:55 +00:00
|
|
|
pkgname=py3-pivy
|
2024-11-01 14:11:51 +00:00
|
|
|
pkgver=0.6.9
|
2024-11-30 18:20:02 +00:00
|
|
|
pkgrel=2
|
2023-05-15 19:52:55 +00:00
|
|
|
pkgdesc="Python3 bindings for coin"
|
|
|
|
url="https://github.com/coin3d/pivy"
|
2024-11-01 14:11:51 +00:00
|
|
|
# riscv64: blocked by py3-pyside6
|
2024-06-02 23:16:47 +00:00
|
|
|
arch="all !riscv64"
|
2023-05-15 19:52:55 +00:00
|
|
|
license="ISC"
|
2024-06-02 23:16:47 +00:00
|
|
|
depends="py3-pyside6"
|
|
|
|
makedepends="swig soqt-dev qt6-qtbase-dev python3-dev glu-dev cmake samurai"
|
2023-05-15 19:52:55 +00:00
|
|
|
checkdepends="py3-pytest"
|
|
|
|
options="!check" # test suite is interactive and requires full installation
|
2024-06-02 23:16:47 +00:00
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/coin3d/pivy/archive/refs/tags/${pkgver//_alpha/.a}.tar.gz"
|
|
|
|
builddir="$srcdir/pivy-${pkgver//_alpha/.a}"
|
2023-05-15 19:52:55 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
|
|
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
|
|
|
fi
|
|
|
|
cmake -B build -G Ninja \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBUILD_SHARED_LIBS=True \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
|
|
$CMAKE_CROSSOPTS
|
|
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-11-01 14:11:51 +00:00
|
|
|
fd9587c69ad7468b771fbae59e68620f67a3c20850edadd65bf7994c1789d3444feb419e65dce34c6ee897c98eaca9f2f29f0bbfb4d1f0bbde26e4db56f74f78 py3-pivy-0.6.9.tar.gz
|
2023-05-15 19:52:55 +00:00
|
|
|
"
|