summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e1b016c3996ee51d861b0c30466c9d9fbc35011 (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: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Anton Kudelin <kudelin at proton dot me>
# Contributor: eolianoe <eolianoe [at] gmail [DoT] com>
# Contributor: Andya <hugo981@gmx.com>
# Contributor: Lazaros Koromilas <koromilaz@gmail.com>
_base=Saxon-HE
pkgname=${_base,,}
pkgver=12.5
pkgrel=1
arch=(any)
pkgdesc="XSLT 3.0, XQuery 3.1, and XPath 3.1 processor for Java - Home Edition"
url="https://github.com/Saxonica/${_base}"
license=(MPL-2.0)
depends=(java-runtime-headless)
provides=(java-saxon)
conflicts=(java-saxon)
source=(${url}/releases/download/${_base/-/}${pkgver//./-}/${_base/-/}${pkgver//./-}J.zip
  saxon-xslt.sh
  saxon-xquery.sh)
sha512sums=('df6b475994b282c8ebae8ce5786ea314eb2a3f03d54f19a288503c0a63fe7fc15b43cf41a3503ba1a19e68425471727b519eed8979524288a422a505762c085f'
            '365eba91dc83600231b1c54c427eca9e076003ed9204c37fe5da777443d190afb22bdc45c305e16181f2738254f6e016a136d9688ddb2d47a6de873245f64f21'
            'b44d1ea24ae6f1e0d34cf86ecc3c83642e2ed3c89230683cc04c7c8992e3a2fc9f191bb565437700a2dcbb56980bbb3c0540e628ad28df43095688da344a9429')

package() {
  install -Dm644 $pkgname-$pkgver.jar "$pkgdir/usr/share/java/saxon/$pkgname-$pkgver.jar"
  install -Dm755 saxon-xquery.sh "${pkgdir}"/usr/bin/saxon-xquery
  install -Dm755 saxon-xslt.sh "${pkgdir}"/usr/bin/saxon-xslt

  # 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"
}