summaryrefslogtreecommitdiff
path: root/community/htmldoc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-09 23:14:54 +0000
committerroot <root@rshg054.dnsready.net>2012-02-09 23:14:54 +0000
commit4bc61018eec54dbe50e7556ce01d2ef2859b2c9f (patch)
tree3ea5705a573fd320639395f484fc12335e0a1b88 /community/htmldoc
parent54b7119c36756b86ea463649ee972cd6c1ce5863 (diff)
Thu Feb 9 23:14:54 UTC 2012
Diffstat (limited to 'community/htmldoc')
-rw-r--r--community/htmldoc/PKGBUILD45
1 files changed, 34 insertions, 11 deletions
diff --git a/community/htmldoc/PKGBUILD b/community/htmldoc/PKGBUILD
index b498e00f1..9df1f9197 100644
--- a/community/htmldoc/PKGBUILD
+++ b/community/htmldoc/PKGBUILD
@@ -1,27 +1,50 @@
-# $Id: PKGBUILD 63628 2012-02-05 12:01:52Z ibiru $
+# $Id: PKGBUILD 64143 2012-02-09 02:03:02Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Simon Rutishauser <simon.rutishauser@gmx.ch>
pkgname=htmldoc
-pkgver=1.8.27
-pkgrel=7
+pkgver=1.9.0svn1700
+pkgrel=1
pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indices"
arch=(i686 x86_64)
url="http://www.htmldoc.org"
license=('GPL')
-depends=('libjpeg' 'libpng' 'openssl' 'fltk' 'gcc-libs' 'libxft' 'libxpm')
-source=(ftp://ftp.easysw.com/pub/${pkgname}/${pkgver}/${pkgname}-$pkgver-source.tar.bz2)
-md5sums=('35589e7b8fe9c54e11be87cd5aec4dcc')
+depends=('libjpeg' 'libpng' 'openssl' 'fltk' 'gcc' 'libxft' 'libxpm')
+makedepends=('subversion')
+__svntrunk=http://svn.easysw.com/public/htmldoc/trunk/
+__svnmod=htmldoc
+source=()
+md5sums=()
+md5sums=()
+md5sums=()
build() {
- cd $srcdir/${pkgname}-${pkgver}
+ cd "$srcdir"
+
+ if [ -d $__svnmod/.svn ]; then
+ (cd $__svnmod && svn up)
+ else
+ svn co $__svntrunk --config-dir ./ $__svnmod
+ fi
+
+ msg "SVN checkout done or server timeout"
+ msg "Starting make..."
+
+ rm -rf "$srcdir/$__svnmod-build"
+ cp -r "$srcdir/$__svnmod" "$srcdir/$__svnmod-build"
+ cd "$srcdir/$__svnmod-build"
+
+ #
+ # BUILD
+ #
+ [ -x configure ] || autoconf
./configure --prefix=/usr
make
}
package() {
- cd $srcdir/${pkgname}-${pkgver}
+ cd "$srcdir/$__svnmod-build"
make install \
prefix=${pkgdir}/usr \
@@ -34,11 +57,11 @@ package() {
prefix=$pkgdir/usr \
sysconfdir=$pkgdir/etc
- # freedesktop stuff
+ # fix freedesktop stuff
install -Dm 644 desktop/htmldoc-128.png \
- $pkgdir/usr/share/pixmaps/htmldoc.png
+ ${pkgdir}/usr/share/pixmaps/htmldoc.png
echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
install -Dm 644 desktop/htmldoc.desktop \
- $pkgdir/usr/share/applications/htmldoc.desktop
+ ${pkgdir}/usr/share/applications/htmldoc.desktop
}