URI:
       sops-9999.ebuild - overlay - 📔 drkhsh gentoo overlay
  HTML git clone https://git.drkhsh.at/overlay.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
       sops-9999.ebuild (738B)
       ---
            1 # Copyright 1999-2022 Gentoo Authors
            2 # Distributed under the terms of the GNU General Public License v2
            3 
            4 EAPI=8
            5 
            6 EGIT_REPO_URI="https://github.com/mozilla/${PN}.git"
            7 
            8 inherit bash-completion-r1 git-r3 go-module
            9 
           10 DESCRIPTION="Simple and flexible tool for managing secrets"
           11 HOMEPAGE="https://github.com/mozilla/sops"
           12 SRC_URI=""
           13 
           14 LICENSE="MPL-2.0"
           15 SLOT="0"
           16 KEYWORDS=""
           17 
           18 DOCS=( {CHANGELOG,README}.rst )
           19 
           20 src_unpack() {
           21         git-r3_src_unpack
           22         go-module_live_vendor
           23 }
           24 
           25 src_compile() {
           26         go build ./cmd/sops || die "build failed"
           27 }
           28 
           29 src_test() {
           30         go test -work || die "test failed"
           31 }
           32 
           33 src_install() {
           34         einstalldocs
           35         dobin sops
           36 
           37         newbashcomp "${FILESDIR}"/sops.bash sops
           38         insinto /usr/share/zsh/site-functions
           39         newins "${FILESDIR}"/sops.zsh _sops
           40 }
           41