docbook-xml: fix zip files extraction.

--HG--
extra : convert_revision : 8c6f754461930946f72d0e369b94d64e3c7f60ef
This commit is contained in:
Juan RP 2009-12-23 17:32:42 +01:00
parent 79c9e862ba
commit 08f9e34068

View file

@ -40,9 +40,9 @@ do_install()
for ver in ${versions}; do
dir=${DESTDIR}/usr/share/xml/docbook/${ver}
install -d -m755 ${dir}
cd ${dir} && \
unzip ${XBPS_SRCDISTDIR}/docbook-xml-${ver}.zip && \
mv catalog.xml catalog
unzip -q -x ${XBPS_SRCDISTDIR}/docbook-xml-${ver}.zip \
-d ${dir} && mv ${dir}/catalog.xml ${dir}/catalog \
|| return 1
done
dir=${DESTDIR}/usr/share/xml/docbook/4.2
sed -e 's|V4.2|V4.1.2|g' < ${dir}/catalog > ${dir}/catalog-4.1.2