[arch-commits] Commit in (imath imath/trunk imath/trunk/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Thu Apr 1 22:59:50 UTC 2021
Date: Thursday, April 1, 2021 @ 22:59:50
Author: arojas
Revision: 411411
Add imath, split from openexr
Added:
imath/
imath/trunk/
imath/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Added: imath/trunk/PKGBUILD
===================================================================
--- imath/trunk/PKGBUILD (rev 0)
+++ imath/trunk/PKGBUILD 2021-04-01 22:59:50 UTC (rev 411411)
@@ -0,0 +1,27 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=imath
+pkgver=3.0.1
+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=('9cd984bb6b0a9572dd4a373b1fab60bc4c992a52ec5c68328fe0f48f194ba3c0')
+
+build() {
+ cmake -B build -S Imath-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DPYTHON=ON
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+ install -Dm644 Imath-$pkgver/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list