blob: f13d6e80c71f7212c74d046649e0c26a37f0e2ad (
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
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=criu
pkgver=3.8
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="xmlto asciidoc python protobuf-c-dev protobuf-dev libaio-dev libnl3-dev
py-protobuf libcap-dev perl libnet-dev"
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/$pkgname/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() {
make -C "$builddir" 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="0faa292ac40d4c08e1a71c685218dc118086e118172bcace88148a1db514ce2e1ad3df95673c8ebb83dbf5e9adf263bac94b3d35b6ac82cd213f43cc94ed94d2 criu-3.8.tar.gz"
|