From d350e70f389af27316620633a2cb6480b4256317 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sun, 25 Oct 2020 20:11:08 +0000
Subject: ca-certificates: 20181109-4

---
 abs/core/ca-certificates/40-update-ca-trust.hook | 11 +++++++++++
 abs/core/ca-certificates/PKGBUILD                | 16 ++++++++--------
 abs/core/ca-certificates/update-ca-trust.hook    | 11 -----------
 3 files changed, 19 insertions(+), 19 deletions(-)
 create mode 100644 abs/core/ca-certificates/40-update-ca-trust.hook
 delete mode 100644 abs/core/ca-certificates/update-ca-trust.hook

diff --git a/abs/core/ca-certificates/40-update-ca-trust.hook b/abs/core/ca-certificates/40-update-ca-trust.hook
new file mode 100644
index 0000000..a83d518
--- /dev/null
+++ b/abs/core/ca-certificates/40-update-ca-trust.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Type = Path
+Target = usr/share/ca-certificates/trust-source/*
+
+[Action]
+Description = Rebuilding certificate stores...
+When = PostTransaction
+Exec = /usr/bin/update-ca-trust
diff --git a/abs/core/ca-certificates/PKGBUILD b/abs/core/ca-certificates/PKGBUILD
index 1a7b291..23bcdb8 100644
--- a/abs/core/ca-certificates/PKGBUILD
+++ b/abs/core/ca-certificates/PKGBUILD
@@ -1,19 +1,19 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
 # Contributor: Pierre Schmitz <pierre@archlinux.de>
 
 pkgbase=ca-certificates
 pkgname=(ca-certificates-utils ca-certificates)
 pkgver=20181109
-pkgrel=1
+pkgrel=4
 pkgdesc="Common CA certificates"
 url="https://src.fedoraproject.org/rpms/ca-certificates"
 arch=(any)
 license=(GPL2)
 makedepends=(asciidoc p11-kit)
-source=(update-ca-trust update-ca-trust.8.txt update-ca-trust.hook)
+source=(update-ca-trust update-ca-trust.8.txt 40-update-ca-trust.hook)
 sha256sums=('ba98e00f80f94e2648b66252119d1b0da2339b8c83860cd69738e5c4e2d0fcc3'
             'acf571f7d7a9df2149a373017280e8f22d07a2d36600256fa48159d22ab74751'
-            '15eb04e757b7c61c8ee1540fd697771b8ae8e31f92cfb39c260b423101e21af8')
+            '3a3833ebd6f9cdef2e534a273653f973a4354d4f9368577d0d73236b014b7748')
 
 build() {
   asciidoc.py -v -d manpage -b docbook update-ca-trust.8.txt
@@ -22,14 +22,14 @@ build() {
 
 package_ca-certificates-utils() {
   pkgdesc+=" (utilities)"
-  depends=('bash' 'coreutils' 'findutils' 'p11-kit>=0.23.1')
+  depends=('bash' 'coreutils' 'findutils' 'p11-kit>=0.23.19')
   provides=(ca-certificates ca-certificates-java)
   conflicts=(ca-certificates-java)
   replaces=(ca-certificates-java)
 
-  install -D update-ca-trust "$pkgdir/usr/bin/update-ca-trust"
-  install -Dm644 update-ca-trust.8 "$pkgdir/usr/share/man/man8/update-ca-trust.8"
-  install -Dm644 update-ca-trust.hook "$pkgdir/usr/share/libalpm/hooks/update-ca-trust.hook"
+  install -Dt "$pkgdir/usr/bin" update-ca-trust
+  install -Dt "$pkgdir/usr/share/man/man8" -m644 update-ca-trust.8
+  install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
 
   # Trust source directories
   install -d "$pkgdir"/{etc,usr/share}/$pkgbase/trust-source/{anchors,blacklist}
diff --git a/abs/core/ca-certificates/update-ca-trust.hook b/abs/core/ca-certificates/update-ca-trust.hook
deleted file mode 100644
index ace8ea8..0000000
--- a/abs/core/ca-certificates/update-ca-trust.hook
+++ /dev/null
@@ -1,11 +0,0 @@
-[Trigger]
-Operation = Install
-Operation = Upgrade
-Operation = Remove
-Type = File
-Target = usr/share/ca-certificates/trust-source/*
-
-[Action]
-Description = Rebuilding certificate stores...
-When = PostTransaction
-Exec = /usr/bin/update-ca-trust
-- 
cgit v0.12

