pistol: fixed build

This commit is contained in:
Tim Biermann 2022-01-07 16:09:58 +01:00
parent 245fbb1f5f
commit 7ba263c3dd
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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
}