39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'javahelp2'
|
|
pkgname=javahelp2
|
|
version=2.0.05.20170719
|
|
revision=1
|
|
_gitver=3ca862d8626096770598a3a256886d205246f4a4
|
|
wrksrc=javahelp-${_gitver}
|
|
archs=noarch
|
|
short_desc="Java based help system"
|
|
hostmakedepends="openjdk apache-ant unzip"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="CDDL-1.1, GPL-2.0-only"
|
|
homepage="https://javahelp.java.net/"
|
|
distfiles="https://github.com/javaee/javahelp/archive/${_gitver}.zip>${pkgname}-${version}.zip"
|
|
checksum=eaeea34c0bf58d3c67ff388ae7543a950c2af1cfba6edba9e9fa77d61b58c481
|
|
|
|
do_install() {
|
|
local _javahelp=usr/share/java/javahelp
|
|
|
|
# Remove class uncompilable without JDIC
|
|
rm -v jhMaster/JavaHelp/src/new/javax/help/plaf/basic/BasicNativeContentViewerUI.java
|
|
|
|
# Build jars
|
|
cd javahelp_nbproject
|
|
ant release
|
|
|
|
vmkdir usr/bin
|
|
|
|
for f in jhindexer jhsearch; do
|
|
vinstall dist/bin/${f}.jar 644 ${_javahelp}
|
|
sed dist/bin/${f} -e "s;opt/javahelp;${_javahelp};g" > ${f}
|
|
vbin ${f}
|
|
done
|
|
|
|
for f in dist/lib/*.jar; do
|
|
vinstall $f 644 ${_javahelp}
|
|
done
|
|
vlicense ${wrksrc}/LICENSE
|
|
}
|