summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorДамјан Георгиевски2019-10-15 15:04:33 +0200
committerДамјан Георгиевски2019-10-15 15:04:52 +0200
commit29e57dc227e7e60f680ca0bd6d1a69120289ff63 (patch)
tree6f83cabe233b4393198a9c913775feb7eda859b2
parent3a375879f17123f8bc8f46e34ba4a34c2d45baa2 (diff)
downloadaur-29e57dc227e7e60f680ca0bd6d1a69120289ff63.tar.gz
build with tools/devtool --release
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD13
2 files changed, 8 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 92b40a9a7f7..5d3215c8d89 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,11 @@
pkgbase = firecracker-git
pkgdesc = Secure and fast microVMs for serverless computing
- pkgver = r1
+ pkgver = r1496.effaab05
pkgrel = 1
url = https://github.com/firecracker-microvm/firecracker
arch = x86_64
license = Apache:2.0
- makedepends = rustup
- makedepends = musl
+ makedepends = docker
source = git+https://github.com/firecracker-microvm/firecracker.git
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index db6a3ade57e..01386cf9d9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,11 @@
pkgname=firecracker-git
_gitname=firecracker
-pkgver=r1
+pkgver=r1496.effaab05
pkgrel=1
pkgdesc="Secure and fast microVMs for serverless computing"
url="https://github.com/firecracker-microvm/firecracker"
depends=()
-makedepends=('rustup' 'musl')
+makedepends=('docker')
arch=('x86_64')
license=('Apache:2.0')
source=("git+https://github.com/firecracker-microvm/firecracker.git")
@@ -18,15 +18,14 @@ pkgver() {
build() {
cd "${srcdir}/${_gitname}"
- rustup target install x86_64-unknown-linux-musl
- cargo build --release
- #tools/devtool build
+ tools/devtool build --release
}
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"
+ toolchain="$(uname -m)-unknown-linux-musl"
+ install -Dm755 build/cargo_target/${toolchain}/release/firecracker "$pkgdir/usr/bin/firecracker"
+ install -Dm755 build/cargo_target/${toolchain}/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
}