aboutsummaryrefslogtreecommitdiffstats
path: root/testing/criu/APKBUILD
blob: b4ff3f55c16ff038d200a4e053a761d88e45e309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=criu
pkgver=3.8.1
pkgrel=0
pkgdesc="Process tree checkpoint/restore utility"
url="http://criu.org"
arch="x86_64"
license="GPL-2.0-or-later LGPL-2.1-only"
makedepends="asciidoc libaio-dev libcap-dev libnet-dev libnl3-dev
	perl protobuf-c-dev protobuf-dev py-protobuf python xmlto"
checkdepends="py-yaml"
options="!check" # https://github.com/checkpoint-restore/criu/issues/434
subpackages="$pkgname-dev $pkgname-doc py-$pkgname:_py:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/xemul/criu/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	# https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed
	export LDFLAGS=$(echo $LDFLAGS |sed 's|-Wl,--as-needed||')
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/libexec/criu/scripts/systemd-autofs-restart.sh
}

_py() {
	pkgdesc="Python bindings for Criu"
	depends="python"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

sha512sums="46c2b04985fde7fd505e5d71d7042e36d50b4ac5cd96b3446e00e8ea1aad89981a9ce78355e354496020d2b9f986948ed16538f66ac365fc93bf7adbfc2dc9fc  criu-3.8.1.tar.gz"