Date: Tuesday, June 8, 2021 @ 16:34:53
Author: felixonmars
Revision: 417469
archrelease: copy trunk to staging-x86_64
Added:
imath/repos/staging-x86_64/
imath/repos/staging-x86_64/PKGBUILD
(from rev 417467, imath/trunk/PKGBUILD)
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Copied: imath/repos/staging-x86_64/PKGBUILD (from rev 417467,
imath/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2021-06-08 16:34:53 UTC (rev 417469)
@@ -0,0 +1,26 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+pkgname=imath
+pkgver=3.0.4
+pkgrel=2
+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=('3b5cef518964755963550b5f4a16e7c0a0872574921b1443f1d47fdb6b8c5afe')
+
+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
+}