summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorДамјан Георгиевски2019-02-07 00:02:15 +0100
committerДамјан Георгиевски2019-02-07 00:02:15 +0100
commit3a375879f17123f8bc8f46e34ba4a34c2d45baa2 (patch)
tree6d8493eb9e3215426c8ab95fde768bd7081049ea
downloadaur-3a375879f17123f8bc8f46e34ba4a34c2d45baa2.tar.gz
initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD32
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..92b40a9a7f7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = firecracker-git
+ pkgdesc = Secure and fast microVMs for serverless computing
+ pkgver = r1
+ pkgrel = 1
+ url = https://github.com/firecracker-microvm/firecracker
+ arch = x86_64
+ license = Apache:2.0
+ makedepends = rustup
+ makedepends = musl
+ source = git+https://github.com/firecracker-microvm/firecracker.git
+ sha256sums = SKIP
+
+pkgname = firecracker-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..db6a3ade57e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+pkgname=firecracker-git
+_gitname=firecracker
+pkgver=r1
+pkgrel=1
+pkgdesc="Secure and fast microVMs for serverless computing"
+url="https://github.com/firecracker-microvm/firecracker"
+depends=()
+makedepends=('rustup' 'musl')
+arch=('x86_64')
+license=('Apache:2.0')
+source=("git+https://github.com/firecracker-microvm/firecracker.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_gitname}"
+ rustup target install x86_64-unknown-linux-musl
+ cargo build --release
+ #tools/devtool build
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ install -Dm755 target/x86_64-unknown-linux-musl/release/firecracker "$pkgdir/usr/bin/firecracker"
+ install -Dm755 target/x86_64-unknown-linux-musl/release/jailer "$pkgdir/usr/bin/jailer"
+ install -m644 -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -m644 -D README.md "$pkgdir"/usr/share/licenses/$pkgname/README.md
+}