blob: 66a12840f3ba7af768b0cd883d384ece758ab2a2 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Josephine Pfeiffer <jpfeiffe@redhat.com>
pkgname=pagerduty-short-circuiter
pkgver=0.0.2+20+gabe4840
pkgrel=1
pkgdesc="Integration of go-pagerduty and ocm-container to spawn ocm-container with automatic cluster login and other features based on PagerDuty alerts."
arch=(x86_64)
url="https://github.com/openshift/pagerduty-short-circuiter"
license=('Apache-2.0')
makedepends=(git go)
_commit="abe4840436f2907e3f064ad94bcc370d01a50ac1" # 27 Feb 2023
source=("$pkgname::git+$url#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare(){
cd "$pkgname"
mkdir -p build/
}
build() {
cd "$pkgname"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o build ./cmd/kite
}
check() {
cd "$pkgname"
go test -v ./...
}
package() {
cd "$pkgname"
install -Dm755 build/kite "$pkgdir"/usr/bin/kite
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/kite/LICENSE"
}
|