summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD31
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6f28a8cdc02
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = java-jdepend
+ pkgdesc = Java library for generating design quality metrics
+ pkgver = 2.9.1
+ pkgrel = 4
+ url = https://github.com/clarkware/jdepend
+ arch = any
+ license = BSD
+ checkdepends = apache-ant
+ makedepends = apache-ant
+ depends = java-runtime-headless
+ source = java-jdepend-2.9.1.tar.gz::https://github.com/clarkware/jdepend/archive/2.9.1.tar.gz
+ sha512sums = 05dd4451c3da38469ef65051862d3299a6beac373605b7a65300e3322d32907702c2925bf7225716e6ce8b56b55c159fd673632f47961b0e2e13a2788b5b2d17
+
+pkgname = java-jdepend
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d3da45c9491
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
+_libname=jdepend
+pkgname=java-${_libname}
+pkgver=2.9.1
+pkgrel=4
+pkgdesc="Java library for generating design quality metrics"
+arch=('any')
+url="https://github.com/clarkware/jdepend"
+license=('BSD')
+depends=('java-runtime-headless')
+makedepends=('apache-ant')
+checkdepends=('apache-ant')
+source=($pkgname-$pkgver.tar.gz::https://github.com/clarkware/jdepend/archive/${pkgver}.tar.gz)
+sha512sums=('05dd4451c3da38469ef65051862d3299a6beac373605b7a65300e3322d32907702c2925bf7225716e6ce8b56b55c159fd673632f47961b0e2e13a2788b5b2d17')
+
+build() {
+ cd ${_libname}-${pkgver}
+ ant jar
+}
+
+check() {
+ cd ${_libname}-${pkgver}
+ ant test
+}
+
+package() {
+ cd ${_libname}-${pkgver}
+ install -Dm644 dist/${_libname}-${pkgver}.jar "${pkgdir}"/usr/share/java/${_libname}-${pkgver}.jar
+ ln -s ${_libname}-${pkgver}.jar "${pkgdir}"/usr/share/java/${_libname}.jar
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}