summaryrefslogtreecommitdiff
path: root/community/htmldoc
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-22 23:13:01 +0000
committerroot <root@rshg047.dnsready.net>2011-07-22 23:13:01 +0000
commitb57c1def9a907b81a49aa91eeb39c9321763c276 (patch)
tree1d056a9ceb1c5ab57a9344548d8ab2a273f09910 /community/htmldoc
parent34b339c5913a55cb5bac8a502696fcd3f54aac0f (diff)
Fri Jul 22 23:13:01 UTC 2011
Diffstat (limited to 'community/htmldoc')
-rw-r--r--community/htmldoc/PKGBUILD28
1 files changed, 19 insertions, 9 deletions
diff --git a/community/htmldoc/PKGBUILD b/community/htmldoc/PKGBUILD
index 92622ac08..ded19e284 100644
--- a/community/htmldoc/PKGBUILD
+++ b/community/htmldoc/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 51081 2011-07-05 07:09:42Z spupykin $
+# $Id: PKGBUILD 52181 2011-07-21 12:03:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Simon Rutishauser <simon.rutishauser@gmx.ch>
@@ -10,25 +10,35 @@ pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indice
arch=(i686 x86_64)
url="http://www.htmldoc.org"
license=('GPL')
-depends=('libjpeg' 'libpng' 'openssl' 'fltk' 'gcc' 'libxft' 'libxpm')
+depends=('libjpeg' 'libpng' 'openssl' 'fltk' 'gcc-libs' 'libxft' 'libxpm')
source=(ftp://ftp.easysw.com/pub/${pkgname}/${pkgver}/${pkgname}-$pkgver-source.tar.bz2)
md5sums=('35589e7b8fe9c54e11be87cd5aec4dcc')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
+ cd $srcdir/${pkgname}-${pkgver}
./configure --prefix=/usr --mandir=${pkgdir}/usr/share/man
- sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs
make
}
package() {
- cd ${startdir}/src/${pkgname}-${pkgver}
- make prefix=${startdir}/pkg/usr install
- # fix freedesktop stuff
+ cd $srcdir/${pkgname}-${pkgver}
+
+ make install \
+ prefix=${pkgdir}/usr \
+ bindir=$pkgdir/usr/bin \
+ datadir=$pkgdir/usr/share \
+ datarootdir=$pkgdir/usr/share \
+ docdir=$pkgdir/usr/share/doc/htmldoc \
+ exec_prefix=$pkgdir/usr \
+ mandir=$pkgdir/usr/share/man \
+ prefix=$pkgdir/usr \
+ sysconfdir=$pkgdir/etc
+
+ # freedesktop stuff
install -Dm 644 desktop/htmldoc-128.png \
- ${startdir}/pkg/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 \
- ${startdir}/pkg/usr/share/applications/htmldoc.desktop
+ $pkgdir/usr/share/applications/htmldoc.desktop
}