# Maintainer: David Parrish # Maintainer: Trevor Bramble pkgname=habitat-git pkgver=0.63.0.r68.ga37fae724 pkgrel=2 pkgdesc="Application automation framework that allows you to build applications that have automation built-in" arch=('x86_64') url="https://www.habitat.sh/" license=('Apache') depends=('libarchive' 'libsodium' 'openssl<1.1.1') makedepends=('git' 'cargo' 'zeromq') provides=('habitat') conflicts=('habitat-bin' 'habitat-git') source=("${pkgname}::git+https://github.com/habitat-sh/habitat.git") sha256sums=('SKIP') pkgver() { cd "$pkgname" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { # Use a temporary local Cargo repository. export CARGO_HOME="${srcdir}/cargo-repository" cd "${srcdir}/${pkgname}" make } # Commented out because tests ask for sudo access #check() { # # Use a temporary local Cargo repository. # export CARGO_HOME="$srcdir/cargo-repository" # # cd "${srcdir}/${pkgname}" # make test #} package() { install -D -m755 "${srcdir}/${pkgname}/target/debug/hab" "${pkgdir}/usr/bin/hab" }