Name imath
Description A C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics
Version 3.2.2-3
Package Base imath
Homepage https://www.openexr.com/
Maintainers ['Antonio Rojas <arojas@archlinux.org>', 'Jelle van der Waa <jelle@archlinux.org>']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/imath
Sources ['git+https://github.com/AcademySoftwareFoundation/Imath#tag=v3.2.2']
Dependencies ['gcc-libs', 'glibc']
Optional-Dependencies ['boost-libs', 'python']
Build-Dependencies ['boost', 'cmake', 'git', 'python', 'python-numpy']
Provides []
Builddate 14-12-2025 19:25:57
Architecture x86_64
Distro-Version
Licenses ['BSD-3-Clause']
Hash 9611fc27b79a3e82323d8fabda74d37d102a29f323f2f57e85114d7e7dfedbc5
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=imath
pkgver=3.2.2
pkgrel=3
pkgdesc='A C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics'
url='https://www.openexr.com/'
arch=(x86_64)
license=(BSD-3-Clause)
depends=(gcc-libs
         glibc)
optdepends=('boost-libs: python bindings'
            'python: python bindings')
makedepends=(boost
             cmake
             git
             python
             python-numpy)
source=(git+https://github.com/AcademySoftwareFoundation/Imath#tag=v$pkgver)
sha256sums=('c691c5d0ae8efb549ee558ba0876eda345817ba15718384dccd6b32c06c58212')

build() {
  cmake -B build -S Imath \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON=ON
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
  install -Dm644 Imath/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname
}