# Maintainer: Dimitris Kiziridis # Contributor: Konrad Tegtmeier # Contributor: Wojtek GawroĊ„ski pkgname=nomad pkgver=1.0.1 pkgrel=1 pkgdesc='A distributed, highly available, datacenter-aware scheduler' arch=('x86_64' 'i686' 'armv7h' 'aarch64') url="https://nomadproject.io/" license=('MPL2') optdepends=('docker: Enables docker driver' 'java-runtime: Enables java driver' 'qemu-headless: Enables qemu driver') provides=('nomad') conflicts=('nomad') depends=('glibc') backup=(etc/nomad.d/{server,client}/nomad.hcl) source_x86_64=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_amd64.zip") source_aarch64=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_arm64.zip") source=('nomad.service') sha256sums=('85b6938ba13b450f8b7b9ca281178eea57a9409948b9e70b69d6a66a4dbdaa7b') sha256sums_x86_64=('24102aa16e82330fac7de3b8156eb10d7ef535027c4d33321e7e64d6049442a4') sha256sums_aarch64=('b03d62a2fa6ba99c1acfab53099f3fee8bfd2a381d9a49192c8de6997fd1b0fa') package() { install -Dm0755 nomad "${pkgdir}/usr/bin/nomad" install -Ddm750 -o root -g root "${pkgdir}/var/lib/nomad" install -Ddm750 "${pkgdir}/etc/nomad.d/" install -Dm644 "nomad.service" "${pkgdir}/usr/lib/systemd/system/nomad.service" }