summaryrefslogtreecommitdiff
path: root/pcr/htmldoc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/htmldoc/PKGBUILD')
-rw-r--r--pcr/htmldoc/PKGBUILD103
1 files changed, 53 insertions, 50 deletions
diff --git a/pcr/htmldoc/PKGBUILD b/pcr/htmldoc/PKGBUILD
index 0c84a3f94..ef001b9d2 100644
--- a/pcr/htmldoc/PKGBUILD
+++ b/pcr/htmldoc/PKGBUILD
@@ -1,75 +1,78 @@
-# 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>
+# Maintainer (Arch): James An <james@jamesan.ca>
+# Contributor (Arch): Mariusz Libera <mariusz.libera@gmail.com>
+# Contributor (Arch): mortdeus <mortdeus@gocos2d.org>
+# Contributor (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor (Arch): tobias <tobias@archlinux.org>
+# Contributor (Arch): Simon Rutishauser <simon.rutishauser@gmx.ch>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=htmldoc
-pkgver=1.8.27
-pkgrel=4
+pkgver=1.8.28
+pkgrel=1
pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indices"
-arch=('i686' 'x86_64' 'mips64el')
+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')
+source=(
+ "http://www.msweet.org/files/project1/htmldoc-${pkgver}-source.tar.gz"
+ 'errno.patch'
+)
+md5sums=('1c2f379e4535734ececd59d6629b4d2d'
+ '2f48488fd485f2583e02b519d6cef553')
prepare() {
- cd $srcdir/$pkgname-$pkgver
+ cd "$pkgname-$pkgver"
- # apply patches
- for patch in ../*.patch ; do
- patch -Np1 -i $patch
- done
+ # replace obsolete libgnutls-config with pkg-config
+ grep -rIl 'libgnutls-config --libs' | while read file ; do sed -i 's/libgnutls-config --libs/pkg-config --libs gnutls/' $file ; 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
+ # 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
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ prefix="$pkgdir/usr" \
+
+ make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make install \
- prefix="$pkgdir/usr" \
- bindir="$pkgdir/usr/bin" \
- mandir="$pkgdir/usr/share/man"
+ cd "$pkgname-$pkgver"
- # documentation
- install -m644 \
- CHANGES.txt \
- README.txt \
- "$pkgdir/usr/share/doc/htmldoc"
+ make install
- # documentation in .ps is way to heavy - this saves ~150M
- rm "$pkgdir/usr/share/doc/htmldoc/htmldoc.ps"
+ # documentation
+ install -d "$pkgdir/usr/share/doc/htmldoc"
+ for f in CHANGES.txt README.txt; do
+ install -Dm644 $f \
+ "$pkgdir/usr/share/doc/htmldoc/$f"
+ done
- # desktop file
- install -Dm644 desktop/htmldoc.desktop \
- "$pkgdir/usr/share/applications/htmldoc.desktop"
+ # 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
+ # 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"
+ # mime
+ install -Dm644 desktop/htmldoc.xml \
+ "$pkgdir/usr/share/mime/packages/htmldoc.xml"
}