aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-01-10 20:19:33 +0100
committerJakub Jirutka <jakub@jirutka.cz>2021-01-10 22:19:36 +0000
commita48221f096bb8ee4f536eab05bce93879490e29a (patch)
tree0ecd62fdd22563c3f9e8899c1b3420efccfdba3b
parent110c301050c7bf923b23f8abded2d4e7779b0014 (diff)
downloadaports-a48221f096bb8ee4f536eab05bce93879490e29a.tar.gz
aports-a48221f096bb8ee4f536eab05bce93879490e29a.tar.bz2
aports-a48221f096bb8ee4f536eab05bce93879490e29a.tar.xz
community/java-cacerts: modernize
-rw-r--r--community/java-cacerts/APKBUILD19
1 files changed, 3 insertions, 16 deletions
diff --git a/community/java-cacerts/APKBUILD b/community/java-cacerts/APKBUILD
index 917bd773b0..2d91f5fdcc 100644
--- a/community/java-cacerts/APKBUILD
+++ b/community/java-cacerts/APKBUILD
@@ -1,29 +1,18 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=java-cacerts
pkgver=1.0
-pkgrel=0
+pkgrel=1
pkgdesc="Script to update java cacerts store"
-url="https://git.alpinelinux.org/cgit/aports/community/java-cacerts"
+url="https://git.alpinelinux.org/aports/tree/community/java-cacerts"
arch="noarch"
options="!check" # Simple script, no tests
license="MIT"
depends="p11-kit p11-kit-trust ca-certificates"
-depends_dev=""
-makedepends="$depends_dev"
install="$pkgname.post-deinstall"
-subpackages=""
-source=""
-
-builddir="$srcdir"
-
-build() {
- return 0
-}
package() {
- cd "$builddir"
mkdir -p "$pkgdir"/etc/ca-certificates/update.d \
- "$pkgdir"/etc/ssl/certs/java || return 1
+ "$pkgdir"/etc/ssl/certs/java
cat > "$pkgdir"/etc/ca-certificates/update.d/java-cacerts <<EOF
#!/bin/sh
exec trust extract --overwrite --format=java-cacerts --filter=ca-anchors \
@@ -31,5 +20,3 @@ exec trust extract --overwrite --format=java-cacerts --filter=ca-anchors \
EOF
chmod +x "$pkgdir"/etc/ca-certificates/update.d/java-cacerts
}
-
-