From ac7547d79cbb08b0c94b7c60dface7d5c90eb0e3 Mon Sep 17 00:00:00 2001 From: aurelien Date: Fri, 30 May 2014 19:59:43 +0200 Subject: htmldoc --- pcr/htmldoc/PKGBUILD | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 pcr/htmldoc/PKGBUILD (limited to 'pcr/htmldoc/PKGBUILD') diff --git a/pcr/htmldoc/PKGBUILD b/pcr/htmldoc/PKGBUILD new file mode 100644 index 000000000..b99e56f0a --- /dev/null +++ b/pcr/htmldoc/PKGBUILD @@ -0,0 +1,75 @@ +# Contributor: Mariusz Libera +# Contributor: mortdeus +# Contributor: Sergej Pupykin +# Contributor: tobias +# Contributor: Simon Rutishauser +# Maintainer : Parabola Aurélien DESBRIÈRES + +pkgname=htmldoc +pkgver=1.8.27 +pkgrel=4 +pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indices" +arch=('i686' 'x86_64') +url="http://www.htmldoc.org" +license=('GPL2') +depends=('libxpm' 'fltk' 'libjpeg' 'openssl' 'shared-mime-info') +conflicts=('htmldoc-svn') +changelog=Changelog +install=$pkgname.install +source=("http://www.msweet.org/files/project1/htmldoc-${pkgver}-source.tar.gz" + 'cve-2009-3050.patch' + 'fortify-fail.patch' + 'libpng15.patch' + 'manpage-fixes.patch' + 'useful-build-info.patch') + +prepare() { + cd $srcdir/$pkgname-$pkgver + + # apply patches + for patch in ../*.patch ; do + patch -Np1 -i $patch + done + + # fix desktop file + echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop + sed -i 's/X-Red-Hat.*$//' desktop/htmldoc.desktop + sed -i 's/htmldoc.png/htmldoc/' desktop/htmldoc.desktop +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install \ + prefix="$pkgdir/usr" \ + bindir="$pkgdir/usr/bin" \ + mandir="$pkgdir/usr/share/man" + + # documentation + install -m644 \ + CHANGES.txt \ + README.txt \ + "$pkgdir/usr/share/doc/htmldoc" + + # documentation in .ps is way to heavy - this saves ~150M + rm "$pkgdir/usr/share/doc/htmldoc/htmldoc.ps" + + # desktop file + install -Dm644 desktop/htmldoc.desktop \ + "$pkgdir/usr/share/applications/htmldoc.desktop" + + # icons + for s in 16 24 32 48 64 96 128; do + install -Dm644 desktop/htmldoc-${s}.png \ + "$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/htmldoc.png" + done + + # mime + install -Dm644 desktop/htmldoc.xml \ + "$pkgdir/usr/share/mime/packages/htmldoc.xml" +} -- cgit v1.2.3-54-g00ecf