diff options
-rw-r--r-- | libre/openexr-libre/PKGBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
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" |