blob: fe55c27a9bd1dc20d01f31375e3bc26a4168ff6b (
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
45
46
47
48
49
50
|
# Maintainer: Carlos Galindo <arch /at- cgj.es>
# Contributor: Hao Long <aur@esd.cc> from vigil-bin
pkgname=vigil
pkgver=1.26.0
pkgrel=1
pkgdesc="Microservices Status Page. Monitors a distributed infrastructure and sends alerts"
arch=("x86_64" "armv7h")
url="https://github.com/valeriansaliou/vigil"
license=("MPL2")
# Removed due to upstream issue #112
depends=("libstrophe")
makedepends=("cargo")
backup=('etc/vigil.cfg')
source=('vigil.service'
'vigil.sysusers'
"${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha512sums=('a437e0a11d0b4fed3d1d2fe78180811e9dec1145bf0fb7920c666c167c5d956fbf4b72ee874184c531c9eca2250c127a2c3082b0d9d0eb6d0d866e8bfb745a8a'
'98634e670f732777184212a50b9a1d41e2669b04cb02b3d62c882eba1c306e5d2ed71ec0ba860541a72702b36b964c3875af5db8f6e87e825ddf8708439606a2'
'c8d5f4fb9a7b63d23abf2f4f717256c8cbed318bd688de28957473f0822d7ce07a28c4c8cddc5edbede2ccde51a89d48178ae0970f00f7bcfbd34ffd22e88ce4')
prepare() {
cd "$pkgname-$pkgver"
sed -i 's|path = "./res/assets/"|path = "/usr/share/vigil/"|g' config.cfg
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
install -Dm644 vigil.service -t "${pkgdir}/usr/lib/systemd/system"
install -Dm644 vigil.sysusers "${pkgdir}/usr/lib/sysusers.d/vigil.conf"
cd "$pkgname-$pkgver"
install -Dm755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
install -Dm644 config.cfg "${pkgdir}/etc/vigil.cfg"
mkdir -p "${pkgdir}/usr/share/"
cp -r res/assets/ "${pkgdir}/usr/share/vigil/"
}
|