From 6cab7254c11c535a2b9d2cdf183b8a9c42c1dfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= Date: Sun, 9 Oct 2022 22:25:57 +0100 Subject: [PATCH] New package: imath-3.1.5 --- common/shlibs | 1 + srcpkgs/imath-devel | 1 + srcpkgs/imath-python3 | 1 + srcpkgs/imath/template | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 120000 srcpkgs/imath-devel create mode 120000 srcpkgs/imath-python3 create mode 100644 srcpkgs/imath/template diff --git a/common/shlibs b/common/shlibs index 4ff73dace83f..50e2fdafc25d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4184,3 +4184,4 @@ libabsl_strings.so.2206.0.0 abseil-cpp-20220623.1_1 libabsl_throw_delegate.so.2206.0.0 abseil-cpp-20220623.1_1 libabsl_time_zone.so.2206.0.0 abseil-cpp-20220623.1_1 libabsl_spinlock_wait.so.2206.0.0 abseil-cpp-20220623.1_1 +libImath-3_1.so.29 imath-3.1.5_1 diff --git a/srcpkgs/imath-devel b/srcpkgs/imath-devel new file mode 120000 index 000000000000..aa5ac0a078d9 --- /dev/null +++ b/srcpkgs/imath-devel @@ -0,0 +1 @@ +imath \ No newline at end of file diff --git a/srcpkgs/imath-python3 b/srcpkgs/imath-python3 new file mode 120000 index 000000000000..aa5ac0a078d9 --- /dev/null +++ b/srcpkgs/imath-python3 @@ -0,0 +1 @@ +imath \ No newline at end of file diff --git a/srcpkgs/imath/template b/srcpkgs/imath/template new file mode 100644 index 000000000000..642f7b958b83 --- /dev/null +++ b/srcpkgs/imath/template @@ -0,0 +1,39 @@ +# Template file for 'imath' +pkgname=imath +version=3.1.5 +revision=1 +wrksrc="${pkgname^}-${version}" +build_style=cmake +configure_args="-DPYTHON=ONE" +hostmakedepends="python3-numpy" +makedepends="python3-devel boost-devel" +short_desc="C++/Python library for 2D/3D vector/matrix/math operations" +maintainer="André Cerqueira " +license="BSD-3-Clause" +homepage="https://www.openexr.com/" +changelog="https://raw.githubusercontent.com/AcademySoftwareFoundation/Imath/main/CHANGES.md" +distfiles="https://github.com/AcademySoftwareFoundation/Imath/archive/v${version}/${pkgname}-${version}.tar.gz" +checksum=1e9c7c94797cf7b7e61908aed1f80a331088cc7d8873318f70376e4aed5f25fb + +post_install() { + vlicense LICENSE.md +} + +imath-python3_package() { + short_desc+=" - Python module" + pkg_install() { + vmove "usr/lib/libPyImath*" + vmove "usr/lib/python3.10/site-packages/imath.so" + vmove "usr/lib/python3.10/site-packages/imathnumpy.so" + } +} + +imath-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/libImath*.so" + } +}