IGNOREPATH=/
STRIPLIB=y
STRIPBIN=y

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

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=http://www.xfree86.org
SUBPKGNAME=xfree86-docs-html-$VERSION-s390-$BUILD
TAG=OPT

subinstall() {
   echo "nothing to install for xf86html"
}

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-xfree86/%%g' /tmp/xf86html.doinst.sh >> $SUBCTL/doinst.sh
}
