[arch-commits] Commit in openexr/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat May 9 12:57:55 UTC 2020
Date: Saturday, May 9, 2020 @ 12:57:54
Author: arojas
Revision: 382938
archrelease: copy trunk to staging-x86_64
Added:
openexr/repos/staging-x86_64/
openexr/repos/staging-x86_64/PKGBUILD
(from rev 382937, openexr/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: openexr/repos/staging-x86_64/PKGBUILD (from rev 382937, openexr/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-09 12:57:54 UTC (rev 382938)
@@ -0,0 +1,35 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=openexr
+pkgver=2.5.0
+pkgrel=1
+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")
+md5sums=('ad68612eca5d015a4fca6a421faa15dd')
+
+build() {
+ mkdir -p build
+
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 "$srcdir"/$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 python3*/imathnumpy.so -t "$pkgdir"/$_pythonpath
+}
More information about the arch-commits
mailing list