void-packages/templates/xmlcatmgr.post_install
Juan RP c06defc719 Replace run_stuff with post/pre_<stage> variables.
If there's a file called "$pkgname.{pre,post}_{configure,build,install}
it will be automatically executed. In addition to this, templates may
use {pre,post}_{configure,build,install}_cmd variables to run arbitrary
commands.

--HG--
extra : convert_revision : 62ad549b8299689ecf8c833e73eda436ffdb7aa7
2008-10-27 03:56:42 +01:00

23 lines
980 B
Text

#
# Install the XML/SGML catalog files.
#
echo "=> Installing XML/SGML catalogs."
$chmod_cmd 644 $wrksrc/catalog.*
[ ! -d $XBPS_SYSCONFDIR/sgml ] && $mkdir_cmd $XBPS_SYSCONFDIR/sgml
[ ! -d $XBPS_DESTDIR/$pkgname-$version/share/sgml ] && \
$mkdir_cmd $XBPS_DESTDIR/$pkgname-$version/share/sgml
[ ! -d $XBPS_SYSCONFDIR/xml ] && $mkdir_cmd $XBPS_SYSCONFDIR/xml
[ ! -d $XBPS_DESTDIR/$pkgname-$version/share/xml ] && \
$mkdir_cmd $XBPS_DESTDIR/$pkgname-$version/share/xml
[ ! -f $XBPS_SYSCONFDIR/sgml/catalog ] && \
$cp_cmd $wrksrc/catalog.etc.sgml $XBPS_SYSCONFDIR/sgml/catalog
[ ! -f $XBPS_SYSCONFDIR/xml/catalog ] && \
$cp_cmd $wrksrc/catalog.etc.xml $XBPS_SYSCONFDIR/xml/catalog
[ ! -f $XBPS_DESTDIR/$pkgname-$version/share/sgml/catalog ] && \
$cp_cmd $wrksrc/catalog.sgml \
$XBPS_DESTDIR/$pkgname-$version/share/sgml/catalog
[ ! -f $XBPS_DESTDIR/$pkgname-$version/share/xml/catalog ] && \
$cp_cmd $wrksrc/catalog.xml \
$XBPS_DESTDIR/$pkgname-$version/share/xml/catalog