代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。