加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
snapcraft.yaml 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
Tamas K Lengyel 提交于 2021-02-13 10:08 . Add snapcraft.yaml (#961)
name: libvmi
adopt-info: libvmi
summary: LibVMI
description: |
LibVMI is a C library with Python bindings that makes it easy to monitor the low-level details of
a running virtual machine by viewing its memory, trapping on hardware events, and accessing the
vCPU registers. This is called virtual machine introspection.
grade: devel
confinement: devmode
base: core20
architectures: [amd64, arm64]
parts:
libvmi:
source: .
build-packages:
- autoconf-archive
- flex
- bison
- libjson-c-dev
- libxen-dev
- libfuse-dev
- build-essential
- pkg-config
- libglib2.0-dev
- autoconf
- automake
- libtool
stage-packages:
- libjson-c-dev
- libglib2.0-0
- libfuse2
plugin: autotools
autotools-configure-parameters: [--disable-kvm]
override-build: |
snapcraftctl build
# remove libvmi.la
rm -f ${SNAPCRAFT_PART_INSTALL}/usr/local/lib/libvmi.la
# set version
VERSION="$(grep AC_INIT configure.ac | sed 's/^.*\[//;s/\].*$//')"
echo "setting version to $VERSION"
snapcraftctl set-version $VERSION
override-stage: |
snapcraftctl stage
# fix pkg-config path
PC=${SNAPCRAFT_STAGE}/usr/local/lib/pkgconfig/${SNAPCRAFT_PROJECT_NAME}.pc
sed -i '1c\prefix=/snap/${SNAPCRAFT_PROJECT_NAME}/current/usr/local' $PC
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化