2022-05-02 14:48:54 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
|
|
|
|
pkgname=elb-instance-status
|
2024-04-20 12:22:16 +00:00
|
|
|
pkgver=1.1.2
|
2022-05-02 14:48:54 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Small monitoring daemon for AWS Autoscaling Group Healthchecks"
|
|
|
|
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
backup=("etc/${pkgname}.yml")
|
|
|
|
url="https://github.com/Luzifer/$pkgname"
|
|
|
|
license=('Apache')
|
|
|
|
depends=()
|
|
|
|
makedepends=('go')
|
|
|
|
source=(
|
|
|
|
"${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
|
|
|
|
"elb-instance-status.yml"
|
|
|
|
)
|
2024-04-20 12:22:16 +00:00
|
|
|
sha512sums=('f65c8f90599cbf4b5230c42341a505eb820024d91e293de5cba70ebd2cb0f6431bd3f3011a1b2d0a23f7a400673d30d776272c8b7cf3210fc2954f830a0d5678'
|
2024-03-31 12:52:13 +00:00
|
|
|
'bbd6a0d6f0ba8bcb9bf05b200b231b1b4ab7f37a069414b7075634298931825c843a8b4ab136a360be3009554915d5748939d60ddc7585ea0223c26a1402e97a')
|
2022-05-02 14:48:54 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
go build \
|
|
|
|
-trimpath \
|
|
|
|
-buildmode=pie \
|
|
|
|
-ldflags="-X main.version=${pkgver}" \
|
|
|
|
-mod=readonly \
|
|
|
|
-modcacherw \
|
|
|
|
-o ${pkgname}
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm644 -t "${pkgdir}/etc" "${srcdir}/${pkgname}-${pkgver}/${pkgname}.yml"
|
|
|
|
install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/${pkgname}-${pkgver}/${pkgname}"
|
|
|
|
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${srcdir}/${pkgname}-${pkgver}/LICENSE"
|
|
|
|
}
|