[arch-commits] Commit in openexr/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Oct 18 23:36:14 UTC 2019
Date: Friday, October 18, 2019 @ 23:36:14
Author: arojas
Revision: 365178
Fix symlink creation
Modified:
openexr/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-18 23:07:35 UTC (rev 365177)
+++ PKGBUILD 2019-10-18 23:36:14 UTC (rev 365178)
@@ -2,7 +2,7 @@
pkgname=openexr
pkgver=2.4.0
-pkgrel=2
+pkgrel=3
pkgdesc="An high dynamic-range image file format library"
url="https://www.openexr.com/"
arch=('x86_64')
@@ -15,6 +15,14 @@
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
More information about the arch-commits
mailing list