From 5fdfd4925842b369474521ee6e3bc0b9a03aa085 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 10 Jan 2014 04:53:20 -0200 Subject: openexr-libre: add mksource --- libre/openexr-libre/PKGBUILD | 53 ++++++++++++++++++++++---------------------- 1 file 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 # Maintainer (Parabola): André Silva @@ -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') -- cgit v1.2.3-54-g00ecf