void-packages/srcpkgs/criu/template
2015-08-13 08:38:19 +02:00

35 lines
960 B
Bash

# Template file for 'criu'
pkgname=criu
version=1.6.1
revision=1
hostmakedepends="pkg-config protobuf-c protobuf python asciidoc xmlto"
makedepends="libbsd-devel protobuf-c-devel protobuf-devel"
depends="python-ipaddr"
short_desc="Utility to checkpoint/restore a process tree"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2, LGPL-2"
homepage="http://criu.org/"
distfiles="http://download.openvz.org/criu/criu-$version.tar.bz2"
checksum=c74810383b7e524be0d909b9a6c1805e0887ac93cf1bfa28f00a87f395879e18
only_for_archs="x86_64"
pycompile_module="pycriu"
do_build() {
make CC=$CC ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
LIBDIR=/usr/lib SBINDIR=/usr/bin install
rm -rf ${DESTDIR}/usr/lib/systemd
}
criu-devel_package() {
short_desc+=" - development files"
depends="criu-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}