[arch-commits] Commit in bcprov/repos (testing-any testing-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Sep 25 03:35:57 UTC 2015


    Date: Friday, September 25, 2015 @ 05:35:56
  Author: fyan
Revision: 247336

archrelease: copy trunk to testing-any

Added:
  bcprov/repos/testing-any/
  bcprov/repos/testing-any/PKGBUILD
    (from rev 247335, bcprov/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: bcprov/repos/testing-any/PKGBUILD (from rev 247335, bcprov/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2015-09-25 03:35:56 UTC (rev 247336)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=bcprov
+pkgver=1.52
+pkgrel=1
+pkgdesc="Java cryptography APIs (Bouncy Castle)"
+arch=('any')
+url="http://www.bouncycastle.org/java.html"
+license=('custom')
+depends=('java-runtime')
+makedepends=('java-environment' 'junit')
+source=("http://www.bouncycastle.org/download/bcprov-jdk15on-${pkgver/./}.tar.gz")
+md5sums=('97abab944f1095c15bc4584726ec98c1')
+
+build() {
+  cd "${srcdir}/bcprov-jdk15on-${pkgver/./}"
+  jar xf src.zip
+
+  mkdir classes
+  find . -name '*.java' > src.list
+
+  # Remove test classes as they are broken for 1.52
+  sed -i '/\/test\//d' src.list
+
+  javac -encoding ISO-8859-1 -cp /usr/share/java/junit.jar -d classes @src.list
+
+  cd classes
+  find . -path '*test/*.class' -delete
+  find . -depth -type d -empty -delete
+  install -m644 ../org/bouncycastle/x509/*.properties org/bouncycastle/x509/
+  jar cf ../bcprov.jar *
+}
+
+package() {
+  cd "${srcdir}/bcprov-jdk15on-${pkgver/./}"
+  install -m755 -d "${pkgdir}/usr/share/java"
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 bcprov.jar "${pkgdir}/usr/share/java/"
+  install -m644 LICENSE.html "${pkgdir}/usr/share/licenses/${pkgname}/"
+}



More information about the arch-commits mailing list