--- /dev/null
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sevmonster-keys
+pkgver=1
+pkgrel=0
+pkgdesc="Public keys for alpine.sev.monster packages"
+url="https://alpine.sev.monster"
+# we install arch specific keys to /etc so we cannot do arch=noarch
+arch="all"
+license="BSD-3-Clause"
+options="!check"
+
+_arch_keys="x86_64:alpine@sev.monster-60eb1287.rsa.pub"
+
+for _i in $_arch_keys; do
+ source="$source ${_i#*:}"
+done
+
+_ins_key() {
+ msg "- $2 ($1)"
+ install -Dm644 "$srcdir"/$2 "$pkgdir"/etc/apk/keys/$2
+}
+
+_install_x86() {
+ case "$1" in
+ x86*) _ins_key $1 $2 ;;
+ esac
+}
+
+package() {
+ # copy keys for repos
+ mkdir -p "$pkgdir"/etc/apk/keys
+ for i in $_arch_keys; do
+ _archs="${i%:*}"
+ _key="${i#*:}"
+ install -Dm644 "$srcdir"/$_key \
+ "$pkgdir"/usr/share/apk/keys/$_key
+
+ for _arch in ${_archs//,/ }; do
+ mkdir -p "$pkgdir"/usr/share/apk/keys/$_arch
+ ln -s ../$_key "$pkgdir"/usr/share/apk/keys/$_arch/
+
+ case "$CARCH" in
+ x86*) _install_x86 $_arch $_key ;;
+ esac
+ done
+ done
+}
+
+sha512sums="
+c36281116bad0c8c0c5e24b09366e9a238d68d7ead69167da8601e05951f895a007838e45d003aac1e5c10c3db52be6f4e2dc1d583f5eab3912ac26a8423819a alpine@sev.monster-60eb1287.rsa.pub
+"
--- /dev/null
+-----BEGIN PUBLIC KEY-----
+MIICGTANBgkqhkiG9w0BAQEFAAOCAgYAMIICAQKCAfgLhKaZZtGy63JchRb/ohFD
+IKhVXjA7bwgKjcRPcLOtAsjrtiAGPGRF0NzC6yaLcBrM3zGBLbtYAjJPzHf0rU69
+Dx2Wvx22sQiVXyTeDirKTgoZAT8DKXiqga3j2CtH7JfT/i+pQnhj1Uhu4n+TBcI9
+gEuG/zZmaCkDlyptAHG53Y/JNLnY5dgphr/lz0lXKTkzLKRnJHiFuVNFBF4gChYg
+PlLbQx0qYoyfRzaaFYk/GrB5cZlRUCJnBAzoXC4yc3Bn/kCQQLc5g/FlwXI3bGpn
+HtTDAzXkBx4WB37MzZ/iYFm4PD7AgLkE2+l7Xgv+hzRi7+H/921n7LdC8SyzSKul
+Sjq8vqCZKVtB3wQ0ttd7PrUI8skHV9Q5LpMdbjZVudoUieodVD4yG6W3r6Zm9V4R
+0SULYGNfxSx6azoQnHUS6MpO09p2z3XN7I4D0RrmpofvVWJct4UFPe99xr6nR/u2
+JXfMiTXUcntCCUJqbaQs2XOtlKJS0FFR196H5XN7QxhJpKoqeZxK8NJ0uyLQSaOg
+TM7hmjjt1w/EUlSbx29F15E9PbiODgaE7dEuZGJaL26tSXTlr8Gmj+WrL7sxbR40
+RwFRF9p8Bf1Tq++/8S+WHpDgI9LSX05QXlS1xINHKAesXVQukB5fda3cegnfYPNy
+OhqZKN+kuXMCAwEAAQ==
+-----END PUBLIC KEY-----