From 857e35341cf843d35c783f6027a74bbf4b2b4f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Mon, 25 Jul 2022 19:32:55 +0200 Subject: [PATCH] add package that install signing key into pacman --- PKGBUILD | 16 ++++++++++++++-- mkessler-signing-key.install | 4 ++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 mkessler-signing-key.install diff --git a/PKGBUILD b/PKGBUILD index bed235b..e2a7d82 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,11 +1,15 @@ pkgbase=mkessler -pkgname=(mkessler-base mkessler-xmonad mkessler-x mkessler-audio mkessler-software mkessler-print mkessler-locale mkessler-desktop mkessler-devel) -pkgver=0.5 +pkgname=(mkessler-base mkessler-xmonad mkessler-x mkessler-audio mkessler-software mkessler-print mkessler-locale mkessler-desktop mkessler-devel mkessler-signing-key) +pkgver=0.6 pkgrel=1 pkgdesc="Base system configuration for mkessler systems" arch=('any') license=('MIT') groups=(mkessler) +url="https://gitlab.com/kesslermaximilian/arch-pkgs" + +source=(https://mkessler-arch.maximilian-kessler.de/signing-key.asc) +b2sums=(b0e1a6bc60f99bdda99dd053ef869a9f3f899ced7a4b23db3718baaee374375ca4013ac3eab2eb3ef6d645083722f9305c484661cd1246f6ec2e3bf62dbf95a4) package_mkessler-base() { # Base packages @@ -100,3 +104,11 @@ package_mkessler-devel() { # python depends+=(python python-pip) } + +package_mkessler-signing-key() { + # Install this package after pacman to ensure that its keyring is initialized + depends=(pacman) + + + install=mkessler-signing-key.install +} diff --git a/mkessler-signing-key.install b/mkessler-signing-key.install new file mode 100644 index 0000000..74b0c96 --- /dev/null +++ b/mkessler-signing-key.install @@ -0,0 +1,4 @@ +post_install() { + pacman-key --import signing_key.asc + pacman-key --lsign B419CDA93D7544F8214B3216A23D90C2433DAFBC +}