[arch-commits] Commit in criu/repos (3 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Sat May 7 05:15:04 UTC 2022
Date: Saturday, May 7, 2022 @ 05:15:04
Author: grawlinson
Revision: 1196122
archrelease: copy trunk to community-testing-x86_64
Added:
criu/repos/community-testing-x86_64/
criu/repos/community-testing-x86_64/PKGBUILD
(from rev 1196121, criu/trunk/PKGBUILD)
criu/repos/community-testing-x86_64/fix-amdgpu-install.patch
(from rev 1196121, criu/trunk/fix-amdgpu-install.patch)
--------------------------+
PKGBUILD | 68 +++++++++++++++++++++++++++++++++++++++++++++
fix-amdgpu-install.patch | 22 ++++++++++++++
2 files changed, 90 insertions(+)
Copied: criu/repos/community-testing-x86_64/PKGBUILD (from rev 1196121, criu/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-05-07 05:15:04 UTC (rev 1196122)
@@ -0,0 +1,68 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Pavel Borzenkov <pavel at voidptr.ru>
+# Contributor: aksr <aksr at t-com dot me>
+
+pkgname=criu
+pkgver=3.17
+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='4f8f295e57e68740699479d12c1ad251e6dd859f'
+source=(
+ "$pkgname::git+https://github.com/checkpoint-restore/criu#commit=$_commit"
+ 'fix-amdgpu-install.patch'
+)
+b2sums=('SKIP'
+ '4d5e7ed02257757f57c0f5c965ebbf3bf0ca5db85d15ac983b861aac8024513ff6f8f9b971bc4c9c0cbd26ee2797116dc3aacc7acf7e7fd04a0eeb7015dc2e83')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ patch -p1 -i ../fix-amdgpu-install.patch
+}
+
+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"
+}
Copied: criu/repos/community-testing-x86_64/fix-amdgpu-install.patch (from rev 1196121, criu/trunk/fix-amdgpu-install.patch)
===================================================================
--- community-testing-x86_64/fix-amdgpu-install.patch (rev 0)
+++ community-testing-x86_64/fix-amdgpu-install.patch 2022-05-07 05:15:04 UTC (rev 1196122)
@@ -0,0 +1,22 @@
+--- a/plugins/amdgpu/Makefile
++++ b/plugins/amdgpu/Makefile
+@@ -50,16 +50,16 @@ clean: amdgpu_plugin_clean amdgpu_plugin_test_clean
+ mrproper: clean
+
+ install:
+- $(Q) mkdir -p $(PLUGINDIR)
++ $(Q) mkdir -p $(DESTDIR)$(PLUGINDIR)
+ ifeq ($(CONFIG_AMDGPU),y)
+ $(E) " INSTALL " $(PLUGIN_NAME)
+- $(Q) install -m 644 $(PLUGIN_SOBJ) $(PLUGINDIR)
++ $(Q) install -m 644 $(PLUGIN_SOBJ) $(DESTDIR)$(PLUGINDIR)
+ endif
+ .PHONY: install
+
+ uninstall:
+ ifeq ($(CONFIG_AMDGPU),y)
+ $(E) " UNINSTALL" $(PLUGIN_NAME)
+- $(Q) $(RM) $(PLUGINDIR)/$(PLUGIN_SOBJ)
++ $(Q) $(RM) $(DESTDIR)$(PLUGINDIR)/$(PLUGIN_SOBJ)
+ endif
+ .PHONY: uninstall
More information about the arch-commits
mailing list