ports/contrib (3.7): wire-go: initial commit, version 0.6.0
commit 8c30917a4fda6e66da2fee7a39e8adb05e469517 Author: Tim Biermann <tbier@posteo.de> Date: Sat Feb 17 15:10:00 2024 +0100 wire-go: initial commit, version 0.6.0 diff --git a/wire-go/.footprint b/wire-go/.footprint new file mode 100644 index 000000000..892d02c0a --- /dev/null +++ b/wire-go/.footprint @@ -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 diff --git a/wire-go/.signature b/wire-go/.signature new file mode 100644 index 000000000..53fc930ff --- /dev/null +++ b/wire-go/.signature @@ -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 diff --git a/wire-go/Pkgfile b/wire-go/Pkgfile new file mode 100644 index 000000000..45aa60b0b --- /dev/null +++ b/wire-go/Pkgfile @@ -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/ +}
participants (1)
-
crux@crux.nu