aboutsummaryrefslogtreecommitdiffstats
path: root/community/webhook/APKBUILD
blob: 1e048d0eedf5b6b25fa62f10925a00753e54b268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=webhook
pkgver=2.8.0
pkgrel=3
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 10-fix-test.patch"

export GOPATH="$srcdir"

build() {
	mkdir -p bin
	go build -o bin github.com/adnanh/webhook/...
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/webhook -t "$pkgdir"/usr/bin
}

sha512sums="98a9e941687c1e679abd5cbd314dad28cb42383e483202698d386d9123d63a3f8f40bb97f3da2c644dfc3f79a8e7d7a6d28b5069c39c9ca114e7e101424481ca  webhook-2.8.0.tar.gz
1bc6c1fe18aa16df092a283e8a00954a60c910d25c53d3900b2657cf49d6aae59686e20565f58a52e7846f6ea200caf292cf39c265c14d083270a32d3f37354c  10-fix-test.patch"