[arch-commits] Commit in bcprov/trunk (PKGBUILD)
Jonas Witschel
diabonas at gemini.archlinux.org
Thu Mar 31 16:27:11 UTC 2022
Date: Thursday, March 31, 2022 @ 16:27:11
Author: diabonas
Revision: 1177962
bcprov: use git-archive tarball instead of git sources
Neither the tag nor the corresponding commit are signed, so there is no real
point in using a full git checkout.
On the other hand using the source tarball from
https://www.bouncycastle.org/download/bcprov-jdk18on-171.tar.gz does not work
well because it does not contain any build system files, only the plain *.java
sources.
Modified:
bcprov/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-31 15:42:03 UTC (rev 1177961)
+++ PKGBUILD 2022-03-31 16:27:11 UTC (rev 1177962)
@@ -2,7 +2,6 @@
# Contributor: Jan de Groot <jgc at archlinux.org>
pkgname=bcprov
pkgver=1.71
-_tag=1dcbde6d8761df7d88fc7432cb128533418adeca # git rev-parse "r${pkgver/./rv}"
pkgrel=1
pkgdesc='Bouncy Castle Crypto APIs for Java'
arch=('any')
@@ -9,17 +8,12 @@
url='https://www.bouncycastle.org/java.html'
license=('MIT')
depends=('java-runtime-headless')
-makedepends=('git' 'ant' 'strip-nondeterminism')
-source=("git+https://github.com/bcgit/bc-java.git#tag=$_tag")
-sha512sums=('SKIP')
+makedepends=('ant' 'strip-nondeterminism')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bcgit/bc-java/archive/refs/tags/r${pkgver/./rv}.tar.gz")
+sha512sums=('25e89590edcb3096b0b0129ed92247274ace6a5b2f43fb78a75f7e2827346b3dd43d0059001bff0044e7e12814238714daabefd85c3becf6f0f858e6b71183a4')
-pkgver() {
- cd bc-java
- git describe --tags | sed 's/^r//;s/rv/./;s/\([^-]*-\)g/r\1/;s/-/./g'
-}
-
build() {
- cd bc-java
+ cd "bc-java-r${pkgver/./rv}"
ant -f ant/jdk18+.xml clean build-provider build
# Timestamps in JAR files generated by Ant do not honour SOURCE_DATE_EPOCH
@@ -28,12 +22,12 @@
}
check() {
- cd bc-java
+ cd "bc-java-r${pkgver/./rv}"
ant -f ant/jdk18+.xml test
}
package() {
- cd bc-java
+ cd "bc-java-r${pkgver/./rv}"
install -Dm644 "build/artifacts/jdk1.8/jars/bcprov-jdk18on-${pkgver/./}.jar" -t "$pkgdir/usr/share/java/$pkgname"
ln -s "bcprov-jdk18on-${pkgver/./}.jar" "$pkgdir/usr/share/java/$pkgname/bcprov.jar"
install -Dm644 LICENSE.html -t "$pkgdir/usr/share/licenses/$pkgname"
More information about the arch-commits
mailing list