summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsashok7242021-05-14 14:40:14 +0300
committersashok7242021-05-14 14:40:14 +0300
commit8bb51c67717b4158c46a292b51c99c3a1513b192 (patch)
tree52a663808c8cc2500fdf7b9501f21c92b74099bb /PKGBUILD
downloadaur-criu-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
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
+}