From e2d2d193bdcb4282364410b50996d0415f05606b Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Sun, 4 Aug 2013 11:37:37 +0200 Subject: Build openexr-libre for mips64el without unavailable dependencies. --- libre/openexr-libre/PKGBUILD | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'libre/openexr-libre') diff --git a/libre/openexr-libre/PKGBUILD b/libre/openexr-libre/PKGBUILD index ff25fb014..638d504b7 100644 --- a/libre/openexr-libre/PKGBUILD +++ b/libre/openexr-libre/PKGBUILD @@ -11,7 +11,8 @@ url="http://www.openexr.com/" arch=('i686' 'x86_64' 'mips64el') license=('BSD') depends=('zlib' 'ilmbase') -makedepends=('libreoffice-writer' 'jre7-openjdk-headless' 'libcups' 'libxinerama') +makedepends=('libcups' 'libxinerama') +[ "$CARCH" != "mips64el" ] && makedepends+=('libreoffice-writer' 'jre7-openjdk-headless') replaces=$_pkgname conflicts=$_pkgname provides=$_pkgname=$pkgver @@ -25,6 +26,7 @@ noextract=(MultiViewOpenEXR.odt OpenEXRFileLayout.odt ReadingAndWritingImageFile build() { cd "${srcdir}/${_pkgname}-${pkgver}" + [ "$CARCH" = "mips64el" ] && sed -i 's/ doc //' Makefile.in # no libreoffice yet ./configure --prefix=/usr make } @@ -38,14 +40,16 @@ package() { # add source documentation with free fonts install -m644 -v "${srcdir}/"{MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.odt doc - # convert documentation to pdf format - cd doc + if [ "$CARCH" != "mips64el" ]; then + # convert documentation to pdf format + cd doc - for x in ${noextract[@]}; do - libreoffice --headless --invisible --convert-to pdf ${x} - done + for x in ${noextract[@]}; do + libreoffice --headless --invisible --convert-to pdf ${x} + done - cd .. + cd .. + fi make DESTDIR="${pkgdir}" install install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" -- cgit v1.2.3-54-g00ecf