mirror of
https://github.com/luzifer-aur/elb-instance-status.git
synced 2024-09-08 01:39:17 +00:00
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
pkgname=elb-instance-status
|
|
pkgver=1.1.3
|
|
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"
|
|
)
|
|
sha512sums=('735517ae4005dbd5551bb11a301740c7f28577dee1bb524e9e1b88314b06fd5617c9212ff6249b2c78578cf8523e0e9f8943f403f1ffac5d2eeee6c112df3022'
|
|
'bbd6a0d6f0ba8bcb9bf05b200b231b1b4ab7f37a069414b7075634298931825c843a8b4ab136a360be3009554915d5748939d60ddc7585ea0223c26a1402e97a')
|
|
|
|
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"
|
|
}
|