2022-12-09 19:47:43 +00:00
|
|
|
# Maintainer: Paul Stemmet <aur@luxolus.com>
|
|
|
|
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
pkgname='kdnotify-git'
|
|
|
|
pkgdesc='A keepalived FIFO notification handler'
|
2022-12-10 21:16:47 +00:00
|
|
|
pkgver=1.0.6
|
2022-12-09 19:47:43 +00:00
|
|
|
pkgrel=1
|
|
|
|
arch=('any')
|
|
|
|
license=('MPL2')
|
|
|
|
url='https://git.st8l.com/luxolus/kdnotify'
|
|
|
|
_artifact="${pkgname}-${pkgver}-${pkgrel}"
|
2022-12-10 21:16:47 +00:00
|
|
|
_commit='d428ff7086a98fcb0592babe8aa36857be824b5a'
|
2022-12-09 19:47:43 +00:00
|
|
|
source=("${_artifact}.tar.gz::https://git.st8l.com/luxolus/kdnotify/archive/v${pkgver}.tar.gz")
|
2022-12-10 21:16:47 +00:00
|
|
|
sha512sums=('f15d78b06c19a505230d7be1677aebd7a96f766fa9f3bc68f93e4d3d5296395254e84b82ee31bdc5c0c79e0f9ece81ad2e715f06d42a3f53c7239ff9ec50bf2b')
|
2022-12-09 19:47:43 +00:00
|
|
|
makedepends=('glibc' 'go')
|
|
|
|
depends=('glibc')
|
|
|
|
provides=("kdnotify=${pkgver}")
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/kdnotify"
|
|
|
|
|
2022-12-10 21:16:47 +00:00
|
|
|
make configure \
|
|
|
|
Version=${pkgver} \
|
|
|
|
Commit=${_commit} \
|
|
|
|
Prefix=${pkgdir}/usr/bin \
|
|
|
|
Systemd=${pkgdir}/usr/lib/systemd
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/kdnotify"
|
|
|
|
|
|
|
|
make build
|
2022-12-09 19:47:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "${srcdir}/kdnotify"
|
|
|
|
|
2022-12-10 21:16:47 +00:00
|
|
|
make check
|
2022-12-09 19:47:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/kdnotify"
|
|
|
|
|
2022-12-10 21:16:47 +00:00
|
|
|
make install
|
|
|
|
|
2022-12-10 09:00:00 +00:00
|
|
|
install -D -m 644 -o 0 -g 0 'doc/example.watch.yaml' \
|
|
|
|
"${pkgdir}/etc/kdnotify/config.yaml"
|
2022-12-09 19:47:43 +00:00
|
|
|
}
|