summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD38
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5dfb5f0eb8a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = criu-git
+ pkgdesc = A Checkpoint/Restore functionality for Linux in Userspace, git version
+ pkgver = r10517.38012e535
+ pkgrel = 1
+ url = https://github.com/checkpoint-restore/criu
+ arch = x86_64
+ license = GPL2
+ makedepends = xmlto
+ makedepends = asciidoc
+ makedepends = git
+ depends = protobuf-c
+ depends = libnl
+ depends = libnet
+ depends = python
+ depends = python-protobuf
+ provides = criu
+ conflicts = criu
+ options = !buildflags
+ source = git+https://github.com/checkpoint-restore/criu
+ sha256sums = SKIP
+
+pkgname = criu-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2a6c57aa4da
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Contributor: aksr <aksr at t-com dot me>
+# Contributor: Pavel Borzenkov <pavel@voidptr.ru>
+# Maintainer: sashok724 <archlinux at sashok724 dot net>
+
+_pkgname=criu
+pkgname=criu-git
+pkgver=r10517.38012e535
+pkgrel=1
+pkgdesc="A Checkpoint/Restore functionality for Linux in Userspace, git version"
+arch=('x86_64')
+url='https://github.com/checkpoint-restore/criu'
+license=('GPL2')
+provides=('criu')
+conflicts=('criu')
+depends=('protobuf-c' 'libnl' 'libnet' 'python' 'python-protobuf')
+makedepends=('xmlto' 'asciidoc' 'git')
+source=("git+$url")
+sha256sums=('SKIP')
+options=('!buildflags')
+
+pkgver() {
+ cd $_pkgname
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ make DESTDIR="$pkgdir/" \
+ PREFIX=/usr \
+ SBINDIR=/usr/bin \
+ LOGROTATEDIR=/etc/logrotate.d \
+ LIBDIR=/usr/lib install
+}