mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-26 16:02:50 +01:00
35 lines
923 B
Plaintext
35 lines
923 B
Plaintext
# Contributor: Andy Hawkins <andy@gently.org.uk>
|
|
# Maintainer: Andy Hawkins <andy@gently.org.uk>
|
|
pkgname=webhook
|
|
pkgver=2.8.2
|
|
pkgrel=12
|
|
pkgdesc="Lightweight configurable webhooks server"
|
|
url="https://github.com/adnanh/webhook"
|
|
license="MIT"
|
|
arch="all"
|
|
makedepends="go"
|
|
source="https://github.com/adnanh/webhook/archive/$pkgver/webhook-$pkgver.tar.gz"
|
|
options="net"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
mkdir -p bin
|
|
go build -o bin github.com/adnanh/webhook/...
|
|
}
|
|
|
|
check() {
|
|
# Tests fail to build 'hookecho' if 'trimpath' is set
|
|
GOFLAGS="${GOFLAGS/-trimpath/}" go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/webhook -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
2006afc324a265e807bc8be6d2aa108e06082360891682c188be932bdbf6ece3d8d67bb653f9a5466e71bbb256c66f7411920c8c96aee6bb64daba888eba7c1d webhook-2.8.2.tar.gz
|
|
"
|