[arch-commits] Commit in sbctl/repos (community-x86_64 community-x86_64/PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Feb 28 13:20:16 UTC 2021


    Date: Sunday, February 28, 2021 @ 13:20:16
  Author: foxboron
Revision: 875882

archrelease: copy trunk to community-x86_64

Added:
  sbctl/repos/community-x86_64/
  sbctl/repos/community-x86_64/PKGBUILD
    (from rev 875881, sbctl/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: sbctl/repos/community-x86_64/PKGBUILD (from rev 875881, sbctl/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-02-28 13:20:16 UTC (rev 875882)
@@ -0,0 +1,30 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=sbctl
+pkgver=0.1
+pkgrel=1
+pkgdesc="Secure Boot key manager"
+arch=("x86_64")
+url="https://github.com/Foxboron/sbctl"
+license=("MIT")
+depends=("sbsigntools")
+makedepends=("go" "git" "asciidoc")
+source=("https://github.com/Foxboron/sbctl/releases/download/0.1/sbctl-0.1.tar.gz"{,.sig})
+validpgpkeys=("C100346676634E80C940FB9E9C02FF419FECBE16")
+sha256sums=('ba460e362ec0aa47c934052c235e05e36e0d81f36e5e7b94992b04f7d8406563'
+            'SKIP')
+
+build(){
+    cd "${pkgname}-${pkgver}"
+    export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
+    make
+}
+
+package(){
+    cd "${pkgname}-${pkgver}"
+    make PREFIX="$pkgdir/usr" install
+    ./sbctl completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/sbctl"
+    ./sbctl completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_sbctl"
+    ./sbctl completion fish | install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/sbctl.fish"
+    install -Dm644 ./contrib/pacman/99-sbctl.hook "${pkgdir}/usr/share/libalpm/hooks/99-sbctl.hook"
+}



More information about the arch-commits mailing list