summaryrefslogtreecommitdiff
path: root/opt/docbook-xsl/MAKEPKG
blob: 1226aa3f3fdc906df5354e9a7237e0bb1652a688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/mkpkg
# description: DocBook XSL stylesheets (non-namespaced)
# url: https://github.com/docbook/xslt10-stylesheets

name=docbook-xsl
version=1.79.2
release=1
makedeps=(libxml2 libxslt)
source=(https://github.com/docbook/xslt10-stylesheets/releases/download/release/$version/docbook-xsl-nons-$version.tar.bz2)
sha256sums=(
    "ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102"
)

build() {
    cd docbook-xsl-nons-$version

    _dest=$PKG/usr/share/xml/docbook/xsl-stylesheets-$version

    install -d $_dest
    cp -R VERSION assembly common eclipse epub epub3 extensions fo \
        highlighting html htmlhelp images javahelp lib manpages params \
        profiling roundtrip slides template tools webhelp website \
        xhtml xhtml-1_1 xhtml5 \
        $_dest

    ln -s VERSION $_dest/VERSION.xsl

    # Set up XML catalog entries
    install -d $PKG/etc/xml
    xmlcatalog --noout --create $PKG/etc/xml/catalog

    xmlcatalog --noout --add "rewriteSystem" \
        "http://docbook.sourceforge.net/release/xsl/current" \
        "/usr/share/xml/docbook/xsl-stylesheets-$version" \
        $PKG/etc/xml/catalog

    xmlcatalog --noout --add "rewriteURI" \
        "http://docbook.sourceforge.net/release/xsl/current" \
        "/usr/share/xml/docbook/xsl-stylesheets-$version" \
        $PKG/etc/xml/catalog

    xmlcatalog --noout --add "rewriteSystem" \
        "https://cdn.docbook.org/release/xsl/current" \
        "/usr/share/xml/docbook/xsl-stylesheets-$version" \
        $PKG/etc/xml/catalog

    xmlcatalog --noout --add "rewriteURI" \
        "https://cdn.docbook.org/release/xsl/current" \
        "/usr/share/xml/docbook/xsl-stylesheets-$version" \
        $PKG/etc/xml/catalog

    # Remove tests and docs
    rm -rf $_dest/tests
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh