aboutsummaryrefslogtreecommitdiffstats
path: root/testing/criu
diff options
context:
space:
mode:
Diffstat (limited to 'testing/criu')
-rw-r--r--testing/criu/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/criu/APKBUILD b/testing/criu/APKBUILD
new file mode 100644
index 0000000000..45b45c0f33
--- /dev/null
+++ b/testing/criu/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=criu
+pkgver=3.17.1
+pkgrel=1
+pkgdesc="Process tree checkpoint/restore utility"
+url="https://criu.org"
+arch="x86_64"
+license="GPL-2.0-or-later LGPL-2.1-only"
+makedepends="xmlto asciidoc python3 protobuf-c-dev libnet-dev libnl3-dev
+ protobuf-dev libcap-dev"
+checkdepends="py3-yaml"
+options="!check" # https://github.com/checkpoint-restore/criu/issues/434
+subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py:noarch"
+source="$pkgname-$pkgver.tar.gz::https://github.com/checkpoint-restore/criu/archive/v$pkgver.tar.gz"
+
+build() {
+ export PYTHON=python3
+ make \
+ CONFIG_AMDGPU=n \
+ PREFIX=/usr \
+ DESTDIR="$pkgdir" \
+ LIBDIR=/usr/lib \
+ LD="${CC:-gcc}"
+}
+
+check() {
+ make test
+}
+
+package() {
+ make \
+ CONFIG_AMDGPU=n \
+ PREFIX=/usr \
+ DESTDIR="$pkgdir" \
+ LIBDIR=/usr/lib \
+ LD="${CC:-gcc}" install
+ rm "$pkgdir"/usr/libexec/criu/scripts/systemd-autofs-restart.sh
+ rm -f "$pkgdir"/usr/lib/*.a
+}
+
+_py() {
+ replaces="py-$pkgname" # Backwards compatibility
+ provides="py-$pkgname=$pkgver-r$pkgrel" # Backwarwds compatibility
+
+ pkgdesc="Python3 bindings for Criu"
+ depends="python3 py3-protobuf"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
+}
+
+sha512sums="
+cd093fad266ad29f1d8001b38762acb46d975b3fb94a19cd40c00a6c62d4a9cbc9ababddfc7b3cfed14e4d7ffbbd982eca05932ef4884c2c3ad4deb330bcccd0 criu-3.17.1.tar.gz
+"