summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Parrish2017-04-16 10:42:47 -0400
committerDavid Parrish2017-04-16 10:42:47 -0400
commitd507c9dca8483b24ecfa0a8c3892fa287e9d5f43 (patch)
tree6ccf5d1f804fbc812e771eed39adc2dd800b01f2
downloadaur-d507c9dca8483b24ecfa0a8c3892fa287e9d5f43.tar.gz
Initial commit for habitat
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD37
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4bdba24724e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Sun Apr 16 14:40:37 UTC 2017
+pkgbase = habitat
+ pkgdesc = Application automation framework that allows you to build applications that have automation built-in
+ pkgver = 0.20.0
+ pkgrel = 1
+ url = https://www.habitat.sh/
+ arch = x86_64
+ license = Apache
+ makedepends = cargo
+ source = habitat::git+https://github.com/habitat-sh/habitat.git#tag=0.20.0
+ sha256sums = SKIP
+
+pkgname = habitat
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6a9d9ebba87
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: David Parrish <daveparrish@tutanota.com>
+
+pkgname=habitat
+pkgver=0.20.0
+pkgrel=1
+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=()
+makedepends=('cargo')
+source=("${pkgname}::git+https://github.com/habitat-sh/habitat.git#tag=${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+ # Use a temporary local Cargo repository.
+ local CARGO_HOME="${srcdir}/cargo-repository"
+
+ cd "${srcdir}/${pkgname}"
+ make
+}
+
+# Commented out because tests ask for sudo access
+#check() {
+# # Use a temporary local Cargo repository.
+# local CARGO_HOME="$srcdir/cargo-repository"
+#
+# cd "${srcdir}/${pkgname}"
+# make test
+#}
+
+package() {
+ # Install executable.
+ ls
+ install -D -m755 "${srcdir}/${pkgname}/target/debug/hab" "${pkgdir}/usr/bin/hab"
+}
+