summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca1922f712519f02d64ce18f51d6f44ea1388f4a (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
# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
# Contributor: eolianoe <eolianoe [at] gmail [DoT] com>
# Contributor: Andya <hugo981@gmx.com>
# Contributor: Lazaros Koromilas <koromilaz@gmail.com>

pkgname=saxon-he
pkgver=10.2
_pkgver=${pkgver//./-}
pkgrel=2
pkgdesc="XSLT 2.0 / XPath 2.0 and 3.0 / XQuery 1.0 and 3.0 processor for Java - Home Edition"
url="http://saxon.sourceforge.net"
license=('MPL')
arch=('any')
depends=('java-runtime-headless')
provides=('java-saxon')
conflicts=('java-saxon')
source=("https://downloads.sourceforge.net/saxon/SaxonHE${_pkgver}J.zip"
        "saxon-xslt.sh"
        "saxon-xquery.sh")
sha256sums=('1cdb9edc158159e940937035464ad4e188bc342e2eda8a1c72e2d02d170d3aa1'
            '53519c8a4ea91ea4c6fe4b4799ccd630f6c4023e8611f3e65d1fee2672bddcbe'
            'f7bf71426e30e6d528cdab885fd27191b9697163e3e447c8644a81de193b6311')

package() {
    cd "$srcdir"
    install -Dm644 $pkgname-$pkgver.jar "$pkgdir/usr/share/java/saxon/$pkgname-$pkgver.jar"
    install -Dm755 saxon-xslt.sh "$pkgdir/usr/bin/saxon-xslt"
    install -Dm755 saxon-xquery.sh "$pkgdir/usr/bin/saxon-xquery"
    # link with simpler name for compat with others
    ln -s $pkgname-$pkgver.jar "$pkgdir/usr/share/java/saxon/saxon.jar"
    ln -s saxon-xslt "$pkgdir/usr/bin/saxon"
}