summaryrefslogtreecommitdiff
path: root/libre/rhino/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-04-27 07:41:18 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-04-27 07:41:18 -0500
commit2e7c99ef3c8ab21d6da94116e9dd987b6463baad (patch)
tree2dbb2184cc13406e37db24070f64c777e4ddbec1 /libre/rhino/PKGBUILD
parent272c1a428e6878a94df024277438767cae8dff73 (diff)
downloadabslibre-2e7c99ef3c8ab21d6da94116e9dd987b6463baad.tar.gz
abslibre-2e7c99ef3c8ab21d6da94116e9dd987b6463baad.tar.bz2
abslibre-2e7c99ef3c8ab21d6da94116e9dd987b6463baad.zip
java-rhino-1.7.7.1-1.parabola1: updating version
Diffstat (limited to 'libre/rhino/PKGBUILD')
-rw-r--r--libre/rhino/PKGBUILD34
1 files changed, 13 insertions, 21 deletions
diff --git a/libre/rhino/PKGBUILD b/libre/rhino/PKGBUILD
index f0390d58d..9e5fd2e4a 100644
--- a/libre/rhino/PKGBUILD
+++ b/libre/rhino/PKGBUILD
@@ -1,33 +1,25 @@
-# $Id$
-# Maintainer: Andreas Radke <andyrtr@archlinux.org>
-# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
-# Contributor: Jan de Groot <jgc@archlinux.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgbase=rhino
pkgname=('java-rhino' 'rhino-javadoc')
-pkgver=1.7.6
+pkgver=1.7.7.1
_pkgver=${pkgver//\./_}
pkgrel=1.parabola1
arch=('any')
url="http://www.mozilla.org/rhino/"
license=('MPL')
makedepends=('apache-ant' 'jh')
-source=(https://github.com/mozilla/${pkgbase}/releases/download/Rhino${_pkgver}_RELEASE/${pkgbase}${pkgver}.zip
- https://repo.maven.apache.org/maven2/org/mozilla/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.pom)
-sha256sums=('45f4431699887a72a7f383ef927ef1b2e79d1fe597260af8df11ea93255b10f5'
- '576f868e3e823d395bf645d0cab9d9dafc74ea172ebed7fcd2603542b981f3cb')
+source=(https://github.com/mozilla/${pkgbase}/archive/Rhino${_pkgver}_RELEASE.tar.gz)
+sha256sums=('fb44d67e3c83cbf7615afa55d5153d10a3ac73ad75ee68e818d548839368b73b')
prepare() {
- cd "${srcdir}/${pkgbase}${pkgver}"
- rm -rv javadoc
- rm -v javadoc.zip js.jar
+ cd "${srcdir}/${pkgbase}-Rhino${_pkgver}_RELEASE"
rm -v testsrc/tests/src/jstests.jar
rm -v testsrc/org/mozilla/javascript/tests/commonjs/module/modules.jar
}
build() {
- cd "${srcdir}/${pkgbase}${pkgver}"
+ cd "${srcdir}/${pkgbase}-Rhino${_pkgver}_RELEASE"
ant \
jar \
javadoc
@@ -37,23 +29,23 @@ 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}-Rhino${_pkgver}_RELEASE
# Install Maven artifacts
export DESTDIR=${pkgdir}
jh mvn-install "org.mozilla" ${pkgbase} ${pkgver} \
- "${srcdir}/${pkgbase}-${pkgver}.pom" \
- "js.jar" \
- "js.jar"
+ "maven/maven-pom.xml" \
+ "build/${pkgbase}${pkgver}/js.jar" \
+ "js-${pkgver}.jar"
- ln -s "/usr/share/java/js.jar" \
- "${pkgdir}/usr/share/java/js-${pkgver}.jar"
+ ln -s "/usr/share/java/js-${pkgver}.jar" \
+ "${pkgdir}/usr/share/java/js.jar"
}
package_rhino-javadoc() {
pkgdesc="Open-source implementation of JavaScript written entirely in Java - Javadoc"
- cd ${srcdir}/${pkgbase}${pkgver}/build/${pkgbase}${pkgver}
+ cd ${srcdir}/${pkgbase}-Rhino${_pkgver}_RELEASE
install -m755 -d ${pkgdir}/usr/share/${pkgbase}
- cp -r javadoc ${pkgdir}/usr/share/${pkgbase}
+ cp -r build/${pkgbase}${pkgver}/javadoc ${pkgdir}/usr/share/${pkgbase}
}