void-packages/srcpkgs/criu/template

38 lines
1004 B
Bash
Raw Normal View History

2015-04-09 16:26:46 +02:00
# Template file for 'criu'
pkgname=criu
2016-10-18 11:24:09 +02:00
version=2.7
2015-04-30 09:47:46 +02:00
revision=1
2015-04-09 16:26:46 +02:00
hostmakedepends="pkg-config protobuf-c protobuf python asciidoc xmlto"
2016-05-21 11:20:36 +02:00
makedepends="libbsd-devel protobuf-c-devel protobuf-devel libnl3-devel"
2015-04-09 16:26:46 +02:00
depends="python-ipaddr"
short_desc="Utility to checkpoint/restore a process tree"
maintainer="Enno Boland <gottox@voidlinux.eu>"
2015-04-09 16:26:46 +02:00
license="GPL-2, LGPL-2"
homepage="http://criu.org/"
2016-05-21 11:20:36 +02:00
distfiles="https://download.openvz.org/criu/criu-$version.tar.bz2"
2016-10-18 11:24:09 +02:00
checksum=c9aae64a4d2a6e881225ec14a00527aef228171a11227034b6322c126c2ece04
2016-05-21 11:20:36 +02:00
nopie=yes
2015-08-13 08:38:19 +02:00
2016-06-15 14:40:50 +02:00
only_for_archs="x86_64 x86_64-musl"
pycompile_module="pycriu"
2015-04-09 16:26:46 +02:00
2015-08-13 08:38:19 +02:00
do_build() {
make CC=$CC ${makejobs}
}
do_install() {
2015-08-13 08:38:19 +02:00
make DESTDIR=${DESTDIR} PREFIX=/usr LOGROTATEDIR=/etc/logrotate.d \
LIBDIR=/usr/lib SBINDIR=/usr/bin install
rm -rf ${DESTDIR}/usr/lib/systemd
2015-11-23 08:53:23 +01:00
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
}
2015-04-09 16:26:46 +02:00
}