mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-22 13:50:49 +01:00
Updated OpenBSD ports file and added brew formulae
This commit is contained in:
parent
a610fcbf92
commit
98f4f998d1
5 changed files with 33 additions and 33 deletions
17
buildfiles/brew/apg-go.rb
Normal file
17
buildfiles/brew/apg-go.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
class ApgGo < Formula
|
||||
desc "\"Automated Password Generator\"-clone written in Go"
|
||||
homepage "https://github.com/wneessen/apg-go/"
|
||||
url "https://github.com/wneessen/apg-go/archive/refs/tags/v0.3.1.tar.gz"
|
||||
sha256 "1a798bd729c2985a11001118ad7d222e75c4f01e642184c37dec409a899a565b"
|
||||
license "MIT"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
system "go", "build", *std_go_args
|
||||
end
|
||||
|
||||
test do
|
||||
system "go", "test", "github.com/wneessen/apg-go"
|
||||
end
|
||||
end
|
|
@ -1,21 +1,15 @@
|
|||
# $OpenBSD$
|
||||
|
||||
COMMENT = "automated password generator" clone written in Go
|
||||
|
||||
V = 0.3.1
|
||||
|
||||
DISTNAME = v$V
|
||||
|
||||
REVISION = 1
|
||||
|
||||
PKGNAME = apg-go-$V
|
||||
GH_ACCOUNT = wneessen
|
||||
GH_PROJECT = apg-go
|
||||
GH_TAGNAME = v0.3.1
|
||||
|
||||
CATEGORIES = security
|
||||
|
||||
HOMEPAGE = https://github.com/wneessen/apg-go
|
||||
|
||||
MAINTAINER = Winni Neessen <wn@neessen.net>
|
||||
|
||||
MASTER_SITES = https://github.com/wneessen/apg-go/archive/refs/tags/
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
|
@ -24,15 +18,4 @@ MODGO_TYPE = bin
|
|||
|
||||
ALL_TARGET = wneessen/apg-go
|
||||
|
||||
post-extract:
|
||||
mv ${WRKDIR}/${PKGNAME} ${WRKDIR}/${DISTNAME}
|
||||
|
||||
test:
|
||||
cd ${WRKDIR} && ${MODGO_CMD} test ${ALL_TARGET}
|
||||
|
||||
build:
|
||||
mkdir -p ${MODGO_WORKSPACE}/bin
|
||||
cd ${WRKDIR} && ${MODGO_CMD} build \
|
||||
-o ${MODGO_WORKSPACE}/bin ${ALL_TARGET}
|
||||
|
||||
.include <bsd.port.mk>
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (v0.3.1.tar.gz) = 1a798bd729c2985a11001118ad7d222e75c4f01e642184c37dec409a899a565b
|
||||
SIZE (v0.3.1.tar.gz) = 16576
|
||||
SHA256 (apg-go-0.3.1.tar.gz) = GnmL1ynCmFoRABEYrX0iLnXE8B5kIYTDfexAmomaVls=
|
||||
SIZE (apg-go-0.3.1.tar.gz) = 16576
|
||||
|
|
Loading…
Reference in a new issue