archrelease: copy trunk to extra-x86_64
[arch-packages.git] / rhino / repos / extra-any / PKGBUILD
blob2d22b9a10641ebc80392d90c13831e98e74499f9
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.14
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=('c58a70eb87988cac96ad9d1435cdf80942e496b8ab0527d7ca97cdcb97371410f34f3f8dc13669432ca0cd511fdf70405e1583fe41f2b993bb5968bde8c39154'
23             'f20e8a8f7c78c88d815c53f89f3f18a53c2e86d92a284cd275aa5556c08962d2905f2d4fc829e5cb61d416cd55b13323d9a110f4f492f588a149b4d2105b21a1'
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}