[arch-commits] Commit in rhino/trunk (PKGBUILD)
Guillaume Alaux
guillaume at archlinux.org
Mon Apr 27 19:30:51 UTC 2015
Date: Monday, April 27, 2015 @ 21:30:51
Author: guillaume
Revision: 238068
Upstream release 1.7.6
Modified:
rhino/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-04-27 19:03:02 UTC (rev 238067)
+++ PKGBUILD 2015-04-27 19:30:51 UTC (rev 238068)
@@ -5,13 +5,14 @@
pkgbase=rhino
pkgname=('java-rhino' 'rhino' 'rhino-javadoc')
-pkgver=1.7R4
-pkgrel=2
+pkgver=1.7.6
+_pkgver=${pkgver//\./_}
+pkgrel=1
arch=('any')
url="http://www.mozilla.org/rhino/"
license=('MPL')
makedepends=('apache-ant')
-source=(https://github.com/downloads/mozilla/rhino/${pkgbase}${pkgver/./_}.zip
+source=(https://github.com/mozilla/${pkgbase}/releases/download/Rhino${_pkgver}_RELEASE/${pkgbase}${pkgver}.zip
http://archive.apache.org/dist/xmlbeans/binaries/xmlbeans-2.5.0.tgz
rhino
rhino.1
@@ -19,17 +20,17 @@
rhino-debugger.1
rhino-jsc
rhino-jsc.1)
-md5sums=('ad67a3dff135e3a70f0c3528a2d6edf2'
- '982e8e3d36aa5f7839f7675adc2b0c53'
- '2006b1ac37d162597b959acd685a4bee'
- '9c6bfda92befa45d484c88f9c7a2403b'
- '08d1ab306f0e07bc9a93afead55d54e8'
- '6c86e6746df7a327b46196a2c4942e0f'
- 'dad268ba00bb4182045507d4017d9815'
- 'af86e6abdf97ee68958ece356a9a7bc1')
+sha256sums=('45f4431699887a72a7f383ef927ef1b2e79d1fe597260af8df11ea93255b10f5'
+ '497b0031e6c998f724f4b462185e85a20c441f7d678b99f42030e9f96be315d3'
+ '4c8bea243b86dc7b3f186a255fedd5d7c13b2aa9f24b81db4f7dd2ed7582e724'
+ 'b3ae7bfc673e999d644d277b317a68289c41c650c49e7614b2e14b4094119388'
+ '9ce7073e0c40bf5f600ed948d6f6abcded6ebebc5e78bc2bdd35ce70bd7611f5'
+ 'afad5dd37f0157138077f5e070b0434491f5e0389bb6bccc5a9cfde275e5c4d8'
+ '5115144b0c025b4cac09d9a5f3bd5e7aeaba6ce3b2055f2f3b659ea0c13e4f2a'
+ '15bb5da739c5d27634aae479ff5c94f685967de0d59cf7dc53b595d94a0b6860')
build() {
- cd ${srcdir}/${pkgbase}${pkgver/./_}
+ cd "${srcdir}/${pkgbase}${pkgver}"
ant \
-Dxbean.jar=${srcdir}/xmlbeans-2.5.0/lib/xbean.jar \
-Djsr173.jar=${srcdir}/xmlbeans-2.5.0/lib/jsr173_1.0_api.jar \
@@ -37,13 +38,17 @@
javadoc
}
-# As explained on the build.xml, tests are difficult to run from CLI. We skip them.
+check() {
+ cd "${srcdir}/${pkgbase}${pkgver}"
+ ant \
+ junit
+}
package_java-rhino() {
pkgdesc="Open-source implementation of JavaScript written entirely in Java - JAR"
depends=('java-runtime-headless')
- cd ${srcdir}/${pkgbase}${pkgver/./_}/build/${pkgbase}${pkgver/./_}
+ cd ${srcdir}/${pkgbase}${pkgver}/build/${pkgbase}${pkgver}
install -Dm644 js.jar ${pkgdir}/usr/share/java/js-${pkgver}.jar
ln -s js-${pkgver}.jar ${pkgdir}/usr/share/java/js.jar
}
@@ -63,7 +68,7 @@
package_rhino-javadoc() {
pkgdesc="Open-source implementation of JavaScript written entirely in Java - Javadoc"
- cd ${srcdir}/${pkgbase}${pkgver/./_}/build/${pkgbase}${pkgver/./_}
+ cd ${srcdir}/${pkgbase}${pkgver}/build/${pkgbase}${pkgver}
install -m755 -d ${pkgdir}/usr/share/${pkgbase}
cp -r javadoc ${pkgdir}/usr/share/${pkgbase}
}
More information about the arch-commits
mailing list