makedepends=(boost cmake python-numpy)
run=(python-numpy)

description="A C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics"
url="https://www.openexr.com/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="imath"
version="3.2.2"
release=1

source=(https://github.com/AcademySoftwareFoundation/Imath/releases/download/v$version/Imath-$version.tar.gz)

build() {

  cmake -B build \
        -S Imath-$version \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DPYTHON=ON

  cmake --build build
  DESTDIR="$PKG" cmake --install build

  install -Dm644 Imath-$version/LICENSE.md -t "$PKG"/usr/share/licenses/$name-$version
}
