[arch-commits] Commit in sbctl/trunk (PKGBUILD)

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


    Date: Sunday, February 28, 2021 @ 13:20:10
  Author: foxboron
Revision: 875881

upgpkg: sbctl 0.1-1

Added:
  sbctl/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-02-28 13:20:10 UTC (rev 875881)
@@ -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