blob: d3edc277168a69ae2951eff95db65ff56644ca21 (
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
|
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=jsr305
pkgver=0.1
pkgrel=1
pkgdesc="Annotations for Software Defect Detection in Java"
arch=('any')
url="https://code.google.com/p/jsr-305/"
license=('BSD')
depends=('java-runtime')
makedepends=('subversion' 'apache-ant' 'jh')
source=("${pkgname}::svn+http://jsr-305.googlecode.com/svn/trunk/#revision=51"
'jsr305-build_javadoc.patch')
md5sums=('SKIP'
'3da9aa214b2a8e10168baf9c0a828d94')
prepare() {
cd "${srcdir}/${pkgname}"
sed -i '6,11d' ri/pom.xml
sed -i 's/-SNAPSHOT//g' ri/pom.xml
sed -i 's/org.jsr-305/com.google.code.findbugs/g' ri/pom.xml
sed -i 's/>ri/>jsr305/g' ri/pom.xml
patch -Np1 -i "${srcdir}/jsr305-build_javadoc.patch"
}
build() {
cd "${srcdir}/${pkgname}/ri"
ant
}
package() {
cd "${srcdir}/${pkgname}/ri"
# Install license file
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Install documentation
install -d "${pkgdir}/usr/share/doc/${pkgname}"
cp -r "build/javadoc" "${pkgdir}/usr/share/doc/${pkgname}"
# Install Maven artifacts
export DESTDIR=${pkgdir}
jh mvn-install "com.google.code.findbugs" ${pkgname} ${pkgver} \
"pom.xml" \
"build/${pkgname}.jar" \
"${pkgname}-${pkgver}.jar"
ln -s "/usr/share/java/${pkgname}-${pkgver}.jar" \
"${pkgdir}/usr/share/java/${pkgname}.jar"
}
|