summaryrefslogtreecommitdiff
path: root/pcr/jakarta-regexp
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-12-04 18:09:17 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-12-04 18:09:17 -0500
commit23f1805c899aebe4df7f70158674423472bcf778 (patch)
tree4b2865ce74b29a943a1458b3c74e164ec4f80e0a /pcr/jakarta-regexp
parent10e32966dda585e43a93c814c7f60c899ea5dade (diff)
downloadabslibre-23f1805c899aebe4df7f70158674423472bcf778.tar.gz
abslibre-23f1805c899aebe4df7f70158674423472bcf778.tar.bz2
abslibre-23f1805c899aebe4df7f70158674423472bcf778.zip
jakarta-regexp: add new package to [pcr]
Diffstat (limited to 'pcr/jakarta-regexp')
-rw-r--r--pcr/jakarta-regexp/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/jakarta-regexp/PKGBUILD b/pcr/jakarta-regexp/PKGBUILD
new file mode 100644
index 000000000..43251f1a4
--- /dev/null
+++ b/pcr/jakarta-regexp/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=jakarta-regexp
+pkgver=1.5
+pkgrel=1.parabola1
+pkgdesc="Regular expression library for Java"
+arch=('any')
+license=('APACHE')
+url="https://jakarta.apache.org/regexp/"
+depends=('java-runtime')
+makedepends=('apache-ant' 'jh')
+source=("http://archive.apache.org/dist/jakarta/regexp/source/${pkgname}-${pkgver}.tar.gz"
+ "http://repo.maven.apache.org/maven2/${pkgname}/${pkgname}/1.4/${pkgname}-1.4.pom")
+md5sums=('b941b8f4de297827f3211c2cb34af199'
+ 'd7d0510793c9081445fad8903a423f90')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ rm -v "${pkgname}-${pkgver}.jar"
+ rm -rv docs
+ sed -i 's/1\.4/1\.5/g' build.xml
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ant jar javadocs
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Install license file
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+
+ # Install documentation
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r "docs/api" "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # Install Maven artifacts
+ export DESTDIR=${pkgdir}
+ jh mvn-install ${pkgname} ${pkgname} ${pkgver} \
+ "${srcdir}/${pkgname}-1.4.pom" \
+ "build/${pkgname}-${pkgver}.jar" \
+ "regexp.jar"
+
+ ln -s "/usr/share/java/regexp.jar" \
+ "${pkgdir}/usr/share/java/regexp-${pkgver}.jar"
+}