blob: ed98aa0dc7e2a15cf59ec97f509b1062ac60411e (
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.11
pkgrel=0
pkgdesc="Process tree checkpoint/restore utility"
url="https://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" LIBDIR=/usr/lib 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="43a6b535d24efd4f75e9fdc25f7b6ef5b0c419b20184146e2950d5c96a65d5f50c3a835b8fb8a03cdd1c4c1b29df821902cab6b3ffd8847980e37ec82882e222 criu-3.11.tar.gz"
|