diff options
author | Tim Biermann <tbier@posteo.de> | 2022-01-07 16:09:58 +0100 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2022-01-07 16:09:58 +0100 |
commit | 7ba263c3dde6786f62505b4a05796d2affcb6da8 (patch) | |
tree | a9c7429cd6f06921e67912cc99c853e801fd2800 /pistol | |
parent | 245fbb1f5fa391ff91fcc2d3eefeec3cb14ff890 (diff) | |
download | contrib-7ba263c3dde6786f62505b4a05796d2affcb6da8.tar.gz contrib-7ba263c3dde6786f62505b4a05796d2affcb6da8.tar.xz |
pistol: fixed build
Diffstat (limited to 'pistol')
-rw-r--r-- | pistol/.signature | 4 | ||||
-rw-r--r-- | pistol/Pkgfile | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/pistol/.signature b/pistol/.signature index 527cf1bc2..07ec6f83b 100644 --- a/pistol/.signature +++ b/pistol/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF33Jq1Fgr0VusKfXVGwQl5iSriNRHdOzBDz7KyXjkwOzQR/O0r+0ioSj72QtchapeRFIXJhVwIylAQ6Z0QzCt9QQ= -SHA256 (Pkgfile) = 9c72af2eaf2ca9f862f0e1aa863e9a836be784fbdef6d56e7498275586cd8bad +RWSagIOpLGJF3xugvlS3HqbeGI+d09j6sFQuKkJsNUVRvKZy6YvkKPWj+/Vu2vBHJ78sNYXmh/NiblP1SGofnEPW+AGTwVjN+Qo= +SHA256 (Pkgfile) = a9b81ad62704ce7f2cb7bb83111e987104659544aac103afa7bc2e2428975ac1 SHA256 (.footprint) = 261cd83f29c092bb94b3b22b330e2376943ba7dcc415500ead6ed144055467a8 SHA256 (pistol-0.3.2.tar.gz) = 7eaf196bbf9f8aaa78a9688ee8c13dbd5c91050e470526e052256a2dd35988d0 diff --git a/pistol/Pkgfile b/pistol/Pkgfile index c69bd9bda..6867595a7 100644 --- a/pistol/Pkgfile +++ b/pistol/Pkgfile @@ -5,7 +5,7 @@ name=pistol version=0.3.2 -release=1 +release=2 source=(https://github.com/doronbehar/pistol/archive/v$version/$name-$version.tar.gz) build() { @@ -16,11 +16,13 @@ build() { export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GO111MODULE=on + export CGO_ENABLED=1 + export GO111MODULE=on mkdir "$PKGMK_SOURCE_DIR/gopath" || true export GOPATH="$PKGMK_SOURCE_DIR/gopath" - go get -u github.com/doronbehar/pistol/cmd/pistol + go build -ldflags "-X 'main.Version=${version}-git'" ./cmd/pistol - install -Dm755 $GOPATH/bin/$name $PKG/usr/bin/$name + install -Dm755 pistol $PKG/usr/bin/pistol } |