[arch-commits] Commit in openexr/repos/testing-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Oct 20 09:17:36 UTC 2019
Date: Sunday, October 20, 2019 @ 09:17:36
Author: arojas
Revision: 365230
archrelease: copy trunk to testing-x86_64
Added:
openexr/repos/testing-x86_64/PKGBUILD
(from rev 365229, openexr/trunk/PKGBUILD)
Deleted:
openexr/repos/testing-x86_64/PKGBUILD
----------+
PKGBUILD | 94 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 51 insertions(+), 43 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-20 09:17:13 UTC (rev 365229)
+++ PKGBUILD 2019-10-20 09:17:36 UTC (rev 365230)
@@ -1,43 +0,0 @@
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-
-pkgname=openexr
-pkgver=2.4.0
-pkgrel=3
-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')
-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=('9e4d69cf2a12c6fb19b98af7c5e0eaee')
-
-prepare() {
- cd $pkgname-$pkgver
-
-# Take DESTDIR into account when creating symlinks
- sed -e 's|chdir ${CMAKE_INSTALL_FULL_LIBDIR}|chdir \\$ENV\\{DESTDIR\\}${CMAKE_INSTALL_FULL_LIBDIR}|' \
- -i OpenEXR/config/LibraryDefine.cmake -i IlmBase/config/LibraryDefine.cmake
-}
-
-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}"
-
-# Fix pc include path
- sed -e 's|=include|=${prefix}/include|g' -e 's|=lib|=${prefix}/lib|g' \
- -i "$pkgdir"/usr/lib/pkgconfig/OpenEXR.pc -i "$pkgdir"/usr/lib/pkgconfig/IlmBase.pc
-}
Copied: openexr/repos/testing-x86_64/PKGBUILD (from rev 365229, openexr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-20 09:17:36 UTC (rev 365230)
@@ -0,0 +1,51 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=openexr
+pkgver=2.4.0
+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")
+md5sums=('9e4d69cf2a12c6fb19b98af7c5e0eaee')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+# Take DESTDIR into account when creating symlinks
+ sed -e 's|chdir ${CMAKE_INSTALL_FULL_LIBDIR}|chdir \\$ENV\\{DESTDIR\\}${CMAKE_INSTALL_FULL_LIBDIR}|' \
+ -i OpenEXR/config/LibraryDefine.cmake -i IlmBase/config/LibraryDefine.cmake
+
+# Fix linking python modules to boost_python
+ sed -e 's|${libname} ${extraDeps}|${libname} ${extraDeps} Boost::${PYILMBASE_BOOST_PY3_COMPONENT}|' -i PyIlmBase/config/ModuleDefine.cmake
+}
+
+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}"
+
+# Fix pc include path
+ sed -e 's|=include|=${prefix}/include|g' -e 's|=lib|=${prefix}/lib|g' \
+ -i "$pkgdir"/usr/lib/pkgconfig/OpenEXR.pc -i "$pkgdir"/usr/lib/pkgconfig/IlmBase.pc
+
+# Install python modules
+ _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
+ install -Dm755 python3*/*.so -t "$pkgdir"/$_pythonpath
+ chrpath -d "$pkgdir"/$_pythonpath/*.so # Remove insecure RPATH
+}
More information about the arch-commits
mailing list