blob: fca6dc7de91489ce2ba36438f309ccf2458de6df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Vladimir Tsanev <tsachev@gmail.com>
pkgname=jcov
_version=3.0
_build=b07
pkgver=${_version}_${_build}
pkgrel=1
pkgdesc="The JCov open source project is used to gather quality metrics associated with the production of test suites."
arch=('any')
url="https://wiki.openjdk.java.net/display/CodeTools/jcov"
license=('GPL2')
groups=()
depends=('java-runtime>=8')
makedepends=('mercurial' 'apache-ant' 'java-environment-openjdk=8' 'java-asm' 'jtharness')
optdepends=('jtharness')
checkdepends=()
provides=()
conflicts=()
install=
_tag=${pkgname}${_version}-${_build}
source=("http://hg.openjdk.java.net/code-tools/jcov/archive/${_tag}.tar.gz")
sha256sums=('af2b06da75e71718ea4c5e8b58e368688a4724a6b250ab52a79aad6a255def8f')
_jcovdir=${pkgname}-${_tag}
prepare() {
cd ${srcdir}/${_jcovdir}
ln -sf /usr/share/java/asm/asm.jar build/asm-7.0.jar
ln -sf /usr/share/java/asm/asm-tree.jar build/asm-tree-7.0.jar
ln -sf /usr/share/java/asm/asm-util.jar build/asm-util-7.0.jar
ln -sf /usr/share/java/jtharness/javatest.jar build/javatest.jar
JAVA_HOME=/usr/lib/jvm/java-8-openjdk ant -f build/build.xml clean
JAVA_HOME=/usr/lib/jvm/java-8-openjdk ant -f plugins/coberturaXML/build/build.xml clean
}
build() {
cd ${srcdir}/${_jcovdir}/build
JAVA_HOME=/usr/lib/jvm/java-8-openjdk ant
cd ${srcdir}/${_jcovdir}/plugins/coberturaXML
JAVA_HOME=/usr/lib/jvm/java-8-openjdk ant -f build/build.xml
}
package() {
cd ${srcdir}/${_jcovdir}
dist=JCOV_BUILD/${pkgname}_${_version}
install -D -m 644 ${dist}/jcov.jar ${pkgdir}/usr/share/java/${pkgname}/jcov.jar
install -D -m 644 ${dist}/jtobserver.jar ${pkgdir}/usr/share/java/${pkgname}/jtobserver.jar
install -D -m 644 ${dist}/jcov_file_saver.jar ${pkgdir}/usr/share/java/${pkgname}/jcov_file_saver.jar
install -D -m 644 ${dist}/jcov_network_saver.jar ${pkgdir}/usr/share/java/${pkgname}/jcov_network_saver.jar
install -D -m 644 plugins/coberturaXML/plugin/dist/coberturaXML.jar ${pkgdir}/usr/share/java/${pkgname}/coberturaXML.jar
install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
mkdir -p ${pkgdir}/usr/share/${pkgname}
ln -sf /usr/share/java/${pkgname} ${pkgdir}/usr/share/${pkgname}/lib
ln -sf /usr/share/licenses/${pkgname}/LICENSE ${pkgdir}/usr/share/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et:
|