# Maintainer: KunoiSayami _basename=probe-client pkgname=ksutils-$_basename pkgver=2.4.2 pkgrel=5 pkgdesc='A probe client, for distributed systems' arch=('any') url=https://github.com/KunoiSayami/probe-client source=( git://github.com/KunoiSayami/probe-client#tag=2.4.2 "$pkgname@.service") license=('AGPL3') sha512sums=( 'SKIP' '2895477aef4263fd9cb5fd7d594e064817872c298d30a46676b94274f542b31f0127be339d59d901c5f5691baf14b21861eea4b4b416a457bf9a6f371bd1bf82') makedepends=('cargo' 'git') depends=('openssl' 'systemd') provides=("$_basename") options=(!lto) build() { cd "$_basename" cargo build --release } package() { install -dm755 "$pkgdir"/etc/ksutils/ install -dm700 "$pkgdir"/etc/ksutils/probe-client/ install -dm755 "$pkgdir"/usr/bin install -dm755 "$pkgdir"/usr/lib/systemd/system install -m755 "$_basename"/target/release/"$_basename" "$pkgdir"/usr/bin/"$pkgname" install -m644 "$pkgname@.service" "$pkgdir"/usr/lib/systemd/system/ }