dotfiles/arch/nomad/PKGBUILD
2021-02-24 12:32:22 +01:00

32 lines
1.4 KiB
Bash

# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
# Contributor: Konrad Tegtmeier <konrad.tegtmeier+aur@gmail.com>
# Contributor: Wojtek Gawroński <afronski@gmail.com>
pkgname=nomad
pkgver=1.0.3
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=('32c864a9aca5164d05b087b86858c9d6044025a5ce41b8a2c3749bd92f15686b')
sha256sums_x86_64=('f384132204e906d653cce0fd6fa2dbe8edf26d50c319d824aa3a5e9184508fe0')
sha256sums_aarch64=('f384132204e906d653cce0fd6fa2dbe8edf26d50c319d824aa3a5e9184508fe0')
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"
}