[arch-commits] Commit in firecracker/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Sat May 7 04:49:13 UTC 2022
Date: Saturday, May 7, 2022 @ 04:49:13
Author: grawlinson
Revision: 1196120
archrelease: copy trunk to community-x86_64
Added:
firecracker/repos/community-x86_64/PKGBUILD
(from rev 1196119, firecracker/trunk/PKGBUILD)
Deleted:
firecracker/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 144 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 77 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-07 04:48:31 UTC (rev 1196119)
+++ PKGBUILD 2022-05-07 04:49:13 UTC (rev 1196120)
@@ -1,67 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-
-pkgbase=firecracker
-pkgname=('firecracker' 'firecracker-docs')
-pkgver=1.0.0
-pkgrel=1
-pkgdesc="Secure and fast microVMs for serverless computing"
-arch=('x86_64')
-url="https://firecracker-microvm.github.io"
-license=('Apache')
-makedepends=('git' 'rust' 'rust-musl')
-options=('!lto')
-_commit='d3e98b9a4ae024de63f072c57015d8b7b0c1b061'
-source=("$pkgname::git+https://github.com/firecracker-microvm/firecracker.git#commit=$_commit")
-b2sums=('SKIP')
-
-_cargo_target="$CARCH-unknown-linux-musl"
-
-pkgver() {
- cd "$pkgbase"
-
- git describe --tags | sed 's/^v//'
-}
-
-prepare() {
- cd "$pkgbase"
-
- # download dependencies
- cargo fetch --locked --target="$_cargo_target"
-}
-
-build() {
- cd "$pkgbase"
-
- cargo build \
- --package firecracker \
- --package jailer \
- --package seccompiler \
- --release \
- --frozen \
- --all-features \
- --target-dir=target \
- --target="$_cargo_target"
-}
-
-check() {
- cd "$pkgbase"
-
- cargo test -p firecracker --frozen
-}
-
-package_firecracker() {
- find "$pkgbase/target/$_cargo_target/release" \
- -maxdepth 1 \
- -executable \
- -type f \
- -exec install -vDm0755 -t "$pkgdir/usr/bin/" {} +
-}
-
-package_firecracker-docs() {
- #arch=('any')
- pkgdesc+=" (documentation)"
-
- cd "$pkgbase"
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgbase" *.md
- cp -vr docs "$pkgdir/usr/share/doc/$pkgbase"
-}
Copied: firecracker/repos/community-x86_64/PKGBUILD (from rev 1196119, firecracker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-07 04:49:13 UTC (rev 1196120)
@@ -0,0 +1,77 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgbase=firecracker
+pkgname=('firecracker' 'firecracker-docs')
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='Secure and fast microVMs for serverless computing'
+arch=('x86_64')
+url='https://firecracker-microvm.github.io'
+license=('Apache' 'BSD')
+makedepends=('git' 'rust' 'clang')
+options=('!lto')
+_commit='77cfb9ceaa6a54e22a8259f50fb621ad1e39292b'
+source=("$pkgname::git+https://github.com/firecracker-microvm/firecracker.git#commit=$_commit")
+b2sums=('SKIP')
+
+_cargo_target="$CARCH-unknown-linux-gnu"
+
+pkgver() {
+ cd "$pkgbase"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgbase"
+
+ # download dependencies
+ cargo fetch --locked --target="$_cargo_target"
+}
+
+build() {
+ cd "$pkgbase"
+
+ cargo build \
+ --package firecracker \
+ --package jailer \
+ --package seccompiler \
+ --package rebase-snap \
+ --release \
+ --frozen \
+ --all-features \
+ --target-dir=target \
+ --target="$_cargo_target"
+}
+
+package_firecracker() {
+ depends=('gcc-libs')
+
+ cd "$pkgbase"
+
+ # binaries
+ find "target/$_cargo_target/release" \
+ -maxdepth 1 \
+ -executable \
+ -type f \
+ -exec install -vDm755 -t "$pkgdir/usr/bin/" {} +
+
+ # licenses
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
+ LICENSE NOTICE THIRD-PARTY
+}
+
+package_firecracker-docs() {
+ #arch=('any')
+ pkgdesc+=" (documentation)"
+
+ cd "$pkgbase"
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgbase" ./*.md
+ cp -vr docs "$pkgdir/usr/share/doc/$pkgbase"
+
+ # licenses
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
+ LICENSE NOTICE THIRD-PARTY
+}
More information about the arch-commits
mailing list