archrelease: copy trunk to extra-x86_64
[arch-packages.git] / rhino / repos / extra-any / PKGBUILD
blob7589ad0130151ea57d0788fed6b2f414909fa62f
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgbase=rhino
6 pkgname=('java-rhino' 'rhino' 'rhino-javadoc')
7 pkgver=1.7.13
8 _pkgver=${pkgver//\./_}
9 pkgrel=1
10 arch=('any')
11 url="https://www.mozilla.org/rhino/"
12 license=('MPL')
13 source=(https://github.com/mozilla/${pkgbase}/releases/download/Rhino${_pkgver}_Release/${pkgbase}-${pkgver}.zip
14         https://github.com/mozilla/${pkgbase}/archive/Rhino${_pkgver}_Release.tar.gz
15         rhino
16         rhino-debugger
17         rhino-debugger.1
18         rhino-idswitch
19         rhino-jsc
20         rhino-jsc.1)
22 sha512sums=('9ad8edc364cdf99fe366e5a9c2fa3e859c1f7e4dd7ff5dabfd9f43d780a152c4c786ca5b29a7290a14c01a796d93d6b4398f0ff4264bc20ddc2b63230fceecc5'
23             '5329bc26e590bb714f6554871e6f061cc6ac2363aa7b6d472133ab60e86b083d1c94c1e7a635fc7131328472b3e0e9eb45a51e17d0ea6655421f0ace0eb6d689'
24             '128768843b40860160aa95fe925e23959c8dc46ccbe8a623d4ccdadf8ab4304bb96dded9952d0654bb90600a9b325e46827cc528d6725c25b0eaf7b2fc6207f4'
25             '909598e2c289530d1de2b47f383fe6a73f40cea2c22ecf30b9fd94ab446ad0e9e9ae11e04ca77eb65ccf4a5a376f2e023aa154450f5f8db187bd196bad542355'
26             'a3723c082b9876fb945fcb14d4826970f83acfefedb43e4571dad1180b6adbed8de273503239a1908e9a79a77de15c49f30c880c92a39ba9764a6859c8d1d571'
27             '7d123bf1a0e9b806d11a4fa6912e76fd8ed7284c5085b19eef5ce41d79475028523d53b503a710088e3a3f8263e021a0c6cc5501aa9d47a69b1685ba6550f014'
28             'a85fd1b0a20567120c7d7e4c426cc1173526e4e2b153dd4434bdf1b2fe6d10a549db5e7cf7a09d1adeefda83d7f09a610b8a287ba8c886290d8e9db8e8e0e5de'
29             'ea68463de5dc05503e68c548a8c4bd18bba1b132b52f78fe4b0e0ddd3b1ff9a0147a27196781522bb69cd613a7288ec6cdbfc9435de86fc6af99c92f90fca78b')
31 package_java-rhino() {
32   pkgdesc="Open-source implementation of JavaScript written entirely in Java - JAR"
33   depends=('java-runtime-headless')
35   install -Dm644 \
36     ${pkgbase}${pkgver}/lib/${pkgbase}-${pkgver}.jar \
37     "${pkgdir}"/usr/share/java/js-${pkgver}.jar
38   ln -s js-${pkgver}.jar "${pkgdir}"/usr/share/java/js.jar
41 package_rhino() {
42   pkgdesc="Open-source implementation of JavaScript written entirely in Java"
43   depends=('java-rhino' 'java-jline')
45   install -dm755 "${pkgdir}"/usr/bin
46   install -m755 \
47     rhino rhino-debugger rhino-jsc rhino-idswitch \
48     "${pkgdir}"/usr/bin/
49   install -dm755 "${pkgdir}"/usr/share/man/man1
50   install -m755 \
51     ${pkgbase}-Rhino${_pkgver}_Release/man/rhino.1 \
52     rhino-debugger.1 \
53     rhino-jsc.1 \
54     "${pkgdir}"/usr/share/man/man1/
57 package_rhino-javadoc() {
58   pkgdesc="Open-source implementation of JavaScript written entirely in Java - Javadoc"
60   install -m755 -d "${pkgdir}"/usr/share/${pkgbase}
61   cp -r ${pkgbase}${pkgver}/docs "${pkgdir}"/usr/share/${pkgbase}