summaryrefslogtreecommitdiff
path: root/pcr/htmldoc/PKGBUILD
diff options
context:
space:
mode:
authoraurelien <aurelien@xload.io>2014-05-30 19:59:43 +0200
committeraurelien <aurelien@xload.io>2014-05-30 19:59:43 +0200
commitac7547d79cbb08b0c94b7c60dface7d5c90eb0e3 (patch)
treefa938f6ea28f03a02afa9bc57579035f3c2dcd1e /pcr/htmldoc/PKGBUILD
parent1268a835f7fb7c40ed82d8be26c05614d1ea3cdc (diff)
downloadabslibre-ac7547d79cbb08b0c94b7c60dface7d5c90eb0e3.tar.gz
abslibre-ac7547d79cbb08b0c94b7c60dface7d5c90eb0e3.tar.bz2
abslibre-ac7547d79cbb08b0c94b7c60dface7d5c90eb0e3.zip
htmldoc
Diffstat (limited to 'pcr/htmldoc/PKGBUILD')
-rw-r--r--pcr/htmldoc/PKGBUILD75
1 files changed, 75 insertions, 0 deletions
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 <mariusz.libera@gmail.com>
+# Contributor: mortdeus <mortdeus@gocos2d.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: tobias <tobias@archlinux.org>
+# Contributor: Simon Rutishauser <simon.rutishauser@gmx.ch>
+# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+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"
+}