summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/openexr-libre/PKGBUILD53
1 files changed, 26 insertions, 27 deletions
diff --git a/libre/openexr-libre/PKGBUILD b/libre/openexr-libre/PKGBUILD
index 36eeb00ef..ba11a2083 100644
--- a/libre/openexr-libre/PKGBUILD
+++ b/libre/openexr-libre/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 196943 2013-10-21 10:31:44Z tpowa $
+# $Id: PKGBUILD 198354 2013-10-30 14:21:29Z allan $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
@@ -16,22 +16,15 @@ makedepends=('libcups' 'libxinerama')
replaces=$_pkgname
conflicts=$_pkgname
provides=$_pkgname=$pkgver
-options=('!libtool')
-source=("http://download.savannah.nongnu.org/releases/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
- "http://repo.parabolagnulinux.org/other/${pkgname}/MultiViewOpenEXR.odt"
- "http://repo.parabolagnulinux.org/other/${pkgname}/OpenEXRFileLayout.odt"
- "http://repo.parabolagnulinux.org/other/${pkgname}/ReadingAndWritingImageFiles.odt"
- "http://repo.parabolagnulinux.org/other/${pkgname}/TechnicalIntroduction.odt")
+mksource=("http://download.savannah.nongnu.org/releases/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+ "https://repo.parabolagnulinux.org/other/${pkgname}/MultiViewOpenEXR.odt"
+ "https://repo.parabolagnulinux.org/other/${pkgname}/OpenEXRFileLayout.odt"
+ "https://repo.parabolagnulinux.org/other/${pkgname}/ReadingAndWritingImageFiles.odt"
+ "https://repo.parabolagnulinux.org/other/${pkgname}/TechnicalIntroduction.odt")
+source=("https://repo.parabolagnulinux.org/sources/${pkgname}-${pkgver}.tar.gz")
noextract=(MultiViewOpenEXR.odt OpenEXRFileLayout.odt ReadingAndWritingImageFiles.odt TechnicalIntroduction.odt)
-build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
- [ "$CARCH" = "mips64el" ] && sed -i 's/ doc //' Makefile.in # no libreoffice yet
- ./configure --prefix=/usr
- make
-}
-
-package() {
+mksource() {
cd "${srcdir}/${_pkgname}-${pkgver}"
# remove documentation with embedded nonfree fonts
@@ -40,24 +33,30 @@ package() {
# add source documentation with free fonts
install -m644 -v "${srcdir}/"{MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.odt doc
+ # convert documentation from odt to pdf format and clean source code
if [ "$CARCH" != "mips64el" ]; then
- # convert documentation to pdf format
cd doc
-
- for x in ${noextract[@]}; do
- libreoffice --headless --invisible --convert-to pdf ${x}
- done
-
- cd ..
+ libreoffice --headless --invisible --convert-to pdf {MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.odt
+ rm -rv "${srcdir}/"{Configurations2,META-INF,ObjBFFFDCA{1,3,4,5,7},Object\ 1,ObjectReplacements,Pictures,Thumbnails}
fi
+}
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -m644 "doc/"{MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.odt "${pkgdir}/usr/share/doc/OpenEXR-${pkgver}"
}
-md5sums=('4387e6050d2faa65dd5215618ff2ddce'
- '69f117d3c91827e5de47f1e00137a4cc'
- '4d5ffa31f9af63bd5c621c6cbac6c673'
- 'de099240193d8a51086dfae914fff3cf'
- 'ece8bf90d438b89c6bd9fe4a89cc318a')
+mkmd5sums=('4387e6050d2faa65dd5215618ff2ddce'
+ '69f117d3c91827e5de47f1e00137a4cc'
+ '4d5ffa31f9af63bd5c621c6cbac6c673'
+ 'de099240193d8a51086dfae914fff3cf'
+ 'ece8bf90d438b89c6bd9fe4a89cc318a')
+md5sums=('13e8ec945aa651a7a7f6aad133941866')