[arch-commits] Commit in openexr/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 6 20:38:15 UTC 2020


    Date: Sunday, December 6, 2020 @ 20:38:15
  Author: foutrelis
Revision: 402990

archrelease: copy trunk to staging-x86_64

Added:
  openexr/repos/staging-x86_64/
  openexr/repos/staging-x86_64/PKGBUILD
    (from rev 402989, openexr/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: openexr/repos/staging-x86_64/PKGBUILD (from rev 402989, openexr/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-12-06 20:38:15 UTC (rev 402990)
@@ -0,0 +1,31 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=openexr
+pkgver=2.5.3
+pkgrel=4
+pkgdesc="An high dynamic-range image file format library"
+url="https://www.openexr.com/"
+arch=('x86_64')
+license=('BSD')
+depends=('zlib')
+makedepends=('cmake' 'fltk' 'python' 'boost' 'freeglut' 'python-numpy' 'chrpath')
+optdepends=('fltk: for exrdisplay' 'boost-libs: python support' 'python: python support') 
+conflicts=('ilmbase')
+replaces=('ilmbase')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/openexr/openexr/archive/v$pkgver.tar.gz")
+sha256sums=('6a6525e6e3907715c6a55887716d7e42d09b54d2457323fcee35a0376960bebf')
+
+build() {
+  cmake -B build -S $pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  cmake --build build
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --install build
+  install -D -m644 $pkgname-$pkgver/LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+
+# Install missing python module
+  _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
+  install -Dm755 build/python3*/imathnumpy.so -t "$pkgdir"/$_pythonpath 
+}



More information about the arch-commits mailing list