void-packages/srcpkgs/criu/template
maxice8 fe1600fc6a criu: update to 3.9.
Closes #14622.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-22 07:52:31 +02:00

49 lines
1.4 KiB
Bash

# Template file for 'criu'
pkgname=criu
version=3.9
revision=1
make_use_env=compliant
build_style=gnu-makefile
hostmakedepends="asciidoc pkg-config xmlto"
makedepends="libcap-devel libnet-devel libnl3-devel protobuf-c-devel
protobuf-devel"
short_desc="Utility to checkpoint/restore a process tree"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.1-only"
homepage="http://criu.org/"
distfiles="https://download.openvz.org/criu/criu-$version.tar.bz2"
checksum=dd95d35ae6a4eb160926d1b86405e90ba98dfcb9f39e21976057904c67a5e150
nocross="fails to run protobuf internals"
case "$XBPS_TARGET_MACHINE" in
i686*) broken="unsupported upstream https://criu.org/32bit_tasks_C/R#Compatible_applications"
esac
do_install() {
make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
LIBDIR=/usr/lib SBINDIR=/usr/bin install
rm -rf ${DESTDIR}/usr/lib/systemd
vsv criu
}
criu-devel_package() {
short_desc+=" - development files"
depends="criu-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
criu-python_package() {
noarch=yes
pycompile_module="pycriu"
depends="python-protobuf python-ipaddr criu-${version}_${revision}"
short_desc="Python2 bindings for criu and crit cli util"
pkg_install() {
vmove usr/bin/crit
vmove usr/share/man/man1/crit.1
vmove usr/lib/python2.7
}
}