milis/talimatname/genel/r/rhino/talimat

21 lines
671 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: JavaScript in java gerçeklemesi
2017-06-09 01:42:06 +02:00
# URL: https://github.com/mozilla/rhino
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: apache-ant openjdk
2017-06-09 01:42:06 +02:00
name=rhino
version=1.7.7.1
release=1
source=(https://github.com/mozilla/$name/archive/Rhino${version//./_}_RELEASE.tar.gz
http://archive.apache.org/dist/xmlbeans/binaries/xmlbeans-2.6.0.tgz)
2017-10-27 23:59:41 +02:00
derle() {
2017-06-09 01:42:06 +02:00
export JAVA_HOME=/opt/OpenJDK-8u60-bin
export PATH=$JAVA_HOME/bin:/opt/ant/bin:$PATH
cd $name-Rhino${version//./_}_RELEASE
ant -Dxbean.jar=$SRC/xmlbeans-2.6.0/lib/xbean.jar \
-Djsr173.jar=$SRC/xmlbeans-2.6.0/lib/jsr173_1.0_api.jar \
jar javadoc
install -D -m 644 build/$name$version/js.jar $PKG/usr/share/java/$name.jar
}