2008-10-13 04:50:32 +02:00
|
|
|
# Template build file for 'xmlcatmgr'.
|
|
|
|
pkgname=xmlcatmgr
|
|
|
|
version=2.2
|
2014-02-14 15:01:06 +01:00
|
|
|
revision=3
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="
|
|
|
|
/etc/sgml/catalog
|
|
|
|
/etc/xml/catalog
|
|
|
|
/usr/share/sgml/catalog
|
|
|
|
/usr/share/xml/catalog"
|
2008-10-13 04:50:32 +02:00
|
|
|
short_desc="XML and SGML catalog manager"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-03-20 11:15:56 +01:00
|
|
|
homepage="http://xmlcatmgr.sourceforge.net"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="$SOURCEFORGE_SITE/xmlcatmgr/$pkgname-$version.tar.gz"
|
2008-10-27 06:12:30 +01:00
|
|
|
checksum=ea1142b6aef40fbd624fc3e2130cf10cf081b5fa88e5229c92b8f515779d6fdc
|
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends="xmlcatmgr"
|
2013-03-20 11:15:56 +01:00
|
|
|
fi
|
2009-03-20 08:17:00 +01:00
|
|
|
|
2012-02-27 18:43:54 +01:00
|
|
|
pre_install() {
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
2013-03-20 11:15:56 +01:00
|
|
|
_xmlcatmgr="xmlcatmgr"
|
|
|
|
else
|
|
|
|
_xmlcatmgr="./xmlcatmgr"
|
|
|
|
fi
|
2008-10-27 06:12:30 +01:00
|
|
|
# Create XML and SGML catalogs once built.
|
|
|
|
echo "=> Creating SGML catalogs..."
|
2013-03-20 11:15:56 +01:00
|
|
|
${_xmlcatmgr} -sc catalog.etc.sgml create
|
|
|
|
${_xmlcatmgr} -sc catalog.sgml create
|
|
|
|
${_xmlcatmgr} -sc catalog.etc.sgml add CATALOG /usr/share/sgml/catalog
|
2008-10-27 06:12:30 +01:00
|
|
|
echo "=> Creating XML catalogs..."
|
2013-03-20 11:15:56 +01:00
|
|
|
${_xmlcatmgr} -c catalog.etc.xml create
|
|
|
|
${_xmlcatmgr} -c catalog.xml create
|
|
|
|
${_xmlcatmgr} -c catalog.etc.xml add nextCatalog /usr/share/xml/catalog
|
2008-10-27 06:12:30 +01:00
|
|
|
}
|
|
|
|
|
2012-02-27 18:43:54 +01:00
|
|
|
post_install() {
|
2008-10-27 06:12:30 +01:00
|
|
|
# Install the XML/SGML catalog files.
|
|
|
|
echo "=> Installing XML/SGML catalogs."
|
|
|
|
chmod 644 $wrksrc/catalog.*
|
2013-03-20 11:15:56 +01:00
|
|
|
install -Dm644 catalog.sgml ${DESTDIR}/usr/share/sgml/catalog
|
|
|
|
install -Dm644 catalog.etc.sgml ${DESTDIR}/etc/sgml/catalog
|
|
|
|
install -Dm644 catalog.xml ${DESTDIR}/usr/share/xml/catalog
|
|
|
|
install -Dm644 catalog.etc.xml ${DESTDIR}/etc/xml/catalog
|
2008-10-27 06:12:30 +01:00
|
|
|
}
|