wire-go: initial commit, version 0.6.0

This commit is contained in:
Tim Biermann 2024-02-17 15:10:00 +01:00
parent 3b21964919
commit 8c30917a4f
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 33 additions and 0 deletions

3
wire-go/.footprint Normal file
View File

@ -0,0 +1,3 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/wire

5
wire-go/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3xut8xQu6aMk7qOv3auZ/CsFFfakzEk/sDt4waJJo10Vo/2mVfF23pHDoyJY8s3meFL0EeJ/b3ZZLHW1oqqyZAA=
SHA256 (Pkgfile) = 958856650483d19642861f0c162b85d244ee24a73b405e0450d098732c1312a9
SHA256 (.footprint) = f62aff313b7cccda62c19f67a1cb0fcfb5e85385b28740eca086099ed1e0b366
SHA256 (wire-0.6.0.tar.gz) = f80eaf41d540f19ecaaa8216be3c00d2850654f1d849f1820f9ee001b477931d

25
wire-go/Pkgfile Normal file
View File

@ -0,0 +1,25 @@
# Description: Compile-time Dependency Injection for Go
# URL: https://github.com/google/wire
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: go
name=wire-go
version=0.6.0
release=1
source=(https://github.com/google/wire/archive/v$version/wire-$version.tar.gz)
build() {
cd wire-$version
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
mkdir "$PKGMK_SOURCE_DIR/gopath" || true
export GOPATH="$PKGMK_SOURCE_DIR/gopath"
go mod download
go build ./cmd/wire
install -Dm755 wire -t $PKG/usr/bin/
}