From a650e3b6735f5a963606ce463eb2e0d97ebc8601 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Mon, 14 Sep 2015 22:07:12 -0500 Subject: java-qdox: add new package to [pcr] --- pcr/java-qdox/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pcr/java-qdox/PKGBUILD (limited to 'pcr/java-qdox') diff --git a/pcr/java-qdox/PKGBUILD b/pcr/java-qdox/PKGBUILD new file mode 100644 index 000000000..1b7bd2ef6 --- /dev/null +++ b/pcr/java-qdox/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Omar Vega Ramos + +_pkgname=qdox +pkgname=java-${_pkgname} +pkgver=1.12.1 +pkgrel=1 +pkgdesc="Quickly parses declarations and Javadoc from Java source" +arch=('any') +url="http://qdox.codehaus.org" +license=('APACHE') +depends=('java-runtime') +makedepends=('apache-ant' 'jh' 'junit') +source=("http://repo1.maven.org/maven2/com/thoughtworks/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}-sources.jar" + "http://repo1.maven.org/maven2/com/thoughtworks/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.pom") +md5sums=('153ec1212a9fcf7986cd61909c05fd5b' + 'ac2b4b3cfe6d594797940ba73f140cf7') + +prepare() { + cd ${srcdir} + mkdir -p "build/classes" +} + +build() { + cd ${srcdir} + + CLASSPATH="/opt/apache-ant/lib/ant.jar:/usr/share/java/junit.jar" + javac -classpath $CLASSPATH -d "build/classes" $(find . -name \*.java) + javadoc -classpath $CLASSPATH -d "build/javadoc" -sourcepath . -subpackages com + + jar -cvf "${_pkgname}.jar" -C "build/classes" . +} + +package() { + cd ${srcdir} + + # 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.thoughtworks.qdox" ${_pkgname} ${pkgver} \ + "${srcdir}/${_pkgname}-${pkgver}.pom" \ + "${srcdir}/${_pkgname}.jar" \ + "${_pkgname}.jar" + ln -s "/usr/share/java/${_pkgname}.jar" \ + "${pkgdir}/usr/share/java/${_pkgname}-${pkgver}.jar" +} \ No newline at end of file -- cgit v1.2.3