# Maintainer: George Rawlinson # Contributor: Pavel Borzenkov # Contributor: aksr pkgname=criu pkgver=3.17.1 pkgrel=1 pkgdesc='Utilities to checkpoint and restore processes in userspace' arch=('x86_64') url='https://criu.org' license=('GPL2') depends=( 'libbsd' 'libnet' 'libnl' 'protobuf-c' 'python-protobuf' 'gnutls' 'nftables' ) makedepends=( 'git' 'xmlto' 'asciidoc' ) options=('!buildflags' '!lto') _commit='d46f40f4ff0c724e0b9f0f8a2e8c043806897e94' source=("$pkgname::git+https://github.com/checkpoint-restore/criu#commit=$_commit") b2sums=('SKIP') pkgver() { cd "$pkgname" git describe --tags | sed 's/^v//' } build() { cd "$pkgname" make } package() { cd "$pkgname" make \ DESTDIR="$pkgdir" \ PREFIX=/usr \ SBINDIR=/usr/bin \ LIBDIR=/usr/lib \ LIBEXECDIR=/usr/lib \ install # remove empty directories rm -rf \ "$pkgdir/usr/include/compel/common/asm" \ "$pkgdir/var" }