[arch-commits] Commit in bcprov/trunk (LICENSE.html PKGBUILD)

Jan de Groot jgc at archlinux.org
Sat Feb 18 12:02:09 UTC 2017


    Date: Saturday, February 18, 2017 @ 12:02:09
  Author: jgc
Revision: 289161

upgpkg: bcprov 1.56-1

Switch to binary release which is signed. FS#43026

Added:
  bcprov/trunk/LICENSE.html
Modified:
  bcprov/trunk/PKGBUILD

--------------+
 LICENSE.html |   22 ++++++++++++++++++++++
 PKGBUILD     |   37 ++++++++++---------------------------
 2 files changed, 32 insertions(+), 27 deletions(-)

Added: LICENSE.html
===================================================================
--- LICENSE.html	                        (rev 0)
+++ LICENSE.html	2017-02-18 12:02:09 UTC (rev 289161)
@@ -0,0 +1,22 @@
+<html>
+<body bgcolor=#ffffff>
+
+Copyright (c) 2000-2016 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)
+<p>
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software 
+and associated documentation files (the "Software"), to deal in the Software without restriction, 
+including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 
+and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+<p>
+The above copyright notice and this permission notice shall be included in all copies or substantial
+portions of the Software.
+<p>
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+</body>
+</html>

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-18 12:00:20 UTC (rev 289160)
+++ PKGBUILD	2017-02-18 12:02:09 UTC (rev 289161)
@@ -2,40 +2,23 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=bcprov
-pkgver=1.54
+pkgver=1.56
 pkgrel=1
 pkgdesc="Java cryptography APIs (Bouncy Castle)"
 arch=('any')
-url="http://www.bouncycastle.org/java.html"
+url="https://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=('d6a3133f766361549b972ee36259029a')
+source=(https://www.bouncycastle.org/download/bcprov-jdk15on-${pkgver/./}.jar
+        LICENSE.html)
+noextract=(bcprov-jdk15on-${pkgver/./}.jar)
+sha256sums=('963e1ee14f808ffb99897d848ddcdb28fa91ddda867eb18d303e82728f878349'
+            'e9bb81d9c9486a5de0d1facd674e761b46cc421ddd31bbd2b100871a8bea2ed6')
 
-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 -source 1.6 -target 1.6 -encoding UTF-8 -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/./}"
+  depends=('java-runtime')
+  cd "${srcdir}"
   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 bcprov-jdk15on-${pkgver/./}.jar "${pkgdir}/usr/share/java/bcprov.jar"
   install -m644 LICENSE.html "${pkgdir}/usr/share/licenses/${pkgname}/"
 }



More information about the arch-commits mailing list