Date: Tuesday, May 18, 2021 @ 06:09:12 Author: arojas Revision: 415646
archrelease: copy trunk to staging-x86_64 Added: imath/repos/staging-x86_64/ imath/repos/staging-x86_64/PKGBUILD (from rev 415645, imath/trunk/PKGBUILD) ----------+ PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Copied: imath/repos/staging-x86_64/PKGBUILD (from rev 415645, imath/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2021-05-18 06:09:12 UTC (rev 415646) @@ -0,0 +1,26 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> + +pkgname=imath +pkgver=3.0.2 +pkgrel=1 +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) +depends=(gcc-libs) +optdepends=('python: python bindings' 'boost-libs: python bindings') +makedepends=(cmake python boost) +source=(https://github.com/AcademySoftwareFoundation/Imath/archive/v$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('85c9939390afd33e93e7bea9c2b8e5dcd37958daa5d70214c58e9b00320ebf29') + +build() { + cmake -B build -S Imath-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON=ON + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + install -Dm644 Imath-$pkgver/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname +}