summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 840886d40549ae8a77cd9444cec6db330d671fcf (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
# Maintainer: Jonne Haß <me@jhass.eu>
pkgname=systemd_http_health_check
pkgver=0.1.0
pkgrel=3
pkgdesc="A companion daemon to notify systemd about the health of a HTTP server" 
arch=('x86_64')
url="http://github.com/jhass/systemd_http_health_check"
license=('BSD')
depends=('systemd-libs' 'gc' 'libevent' 'pcre')
makedepends=('crystal' 'shards')
source=("$pkgname-$pkgver.tar.gz::https://github.com/jhass/systemd_http_health_check/archive/refs/tags/v$pkgver.tar.gz")

prepare() {
  cd "$pkgname-$pkgver"
  shards install
}

build() {
  cd "$pkgname-$pkgver"
  shards build --release
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
}
sha256sums=('e999136e262c7f7896940af5718ad14f114bcf204c3bc1df1ce39ac4d27cdf90')