IGNOREPATH=/
STRIPLIB=n
STRIPBIN=n

PROGNAME="x11-docs-html $VERSION"
DESC="\
x11-docs-html (HTML documentation for X)                               \n\
                                                                       \n\
Documentation and release notes for X (in HTML format) that you can    \n\
can find in /usr/X11R6/lib/X11/doc/html/."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=ftp://ftp.x.org/pub/X11R6.7/tars/
SUBPKGNAME=x11-docs-html-$VERSION-noarch-$BUILD
TAG=REC

subinstall() {
   echo "nothing to install for x11-docs-html"
}

subspecial() {
   mkdir -p $SUBPKG/usr/X11R6/lib/X11/doc/html

   ( cd $TMP/xm/usr/X11R6/lib/X11/doc/html
     cp -a * $SUBPKG/usr/X11R6/lib/X11/doc/html/
   )

   chown -R root.root $SUBPKG
   chmod 644 $SUBPKG/usr/X11R6/lib/doc/X11/*

   mkdir -p $SUBCTL
   cd $SUBCTL
   cat $CWD/slack-desc > slack-desc

   # copy over the hacked up doinst.sh from the main package   
   sed -e 's%package-x11/%%g' /tmp/x11html.doinst.sh >> $SUBCTL/doinst.sh
   rm /tmp/x11html.doinst.sh
}
