pkgname=docbook-xsl pkgver=1.79.2 pkgrel=1 pkgdesc="XML stylesheets for Docbook-xml transformations" arch=('x86_64') url="https://docbook.org" license=('LicenseRef-docbook-XSL') depends=('libxml2') install=${pkgname}.install source=(https://github.com/docbook/xslt10-stylesheets/releases/download/release/${pkgver}/${pkgname}-nons-${pkgver}.tar.bz2 https://www.linuxfromscratch.org/patches/downloads/docbook-xsl-nons/${pkgname}-nons-${pkgver}-stack_fix-1.patch https://github.com/docbook/xslt10-stylesheets/releases/download/release/${pkgver}/${pkgname}-doc-${pkgver}.tar.bz2) sha256sums=(ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102 a92c39715c54949ba9369add1809527b8f155b7e2a2b2e30cb4b39ee715f2e30 9bc38a3015717279a3a0620efb2d4bcace430077241ae2b0da609ba67d8340bc) prepare() { cd ${pkgname}-nons-${pkgver} patch -Np1 -i ${srcdir}/${pkgname}-nons-${pkgver}-stack_fix-1.patch } package() { cd ${pkgname}-nons-${pkgver} install -v -m755 -d ${pkgdir}/etc/xml install -v -m755 -d ${pkgdir}/usr/share/xml/docbook/xsl-stylesheets-nons-${pkgver} cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \ highlighting html htmlhelp images javahelp lib manpages params \ profiling roundtrip slides template tests tools webhelp website \ xhtml xhtml-1_1 xhtml5 \ ${pkgdir}/usr/share/xml/docbook/xsl-stylesheets-nons-${pkgver} ln -s VERSION ${pkgdir}/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2/VERSION.xsl install -v -m644 -D README \ ${pkgdir}/usr/share/doc/docbook-xsl-nons-${pkgver}/README.txt install -v -m644 RELEASE-NOTES* NEWS* \ ${pkgdir}/usr/share/doc/docbook-xsl-nons-${pkgver} install -vdm755 ${pkgdir}/usr/share/doc/docbook-xsl-nons-${pkgver} cp -v -R ${srcdir}/${pkgname}-${pkgver}/doc/* ${pkgdir}/usr/share/doc/docbook-xsl-nons-${pkgver} }