diff options
author | root <root@rshg054.dnsready.net> | 2013-08-04 04:19:45 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-04 04:19:45 -0700 |
commit | 639c9730319cc0ce33e34e2386f467f67d3cc458 (patch) | |
tree | 1e090750a40fe669b704e6fc52cafa0acfa1b718 /libre | |
parent | e88029ce7aca147fa158866a25841033adc244f2 (diff) |
Sun Aug 4 04:19:39 PDT 2013
Diffstat (limited to 'libre')
-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" |