diff options
author | sashok724 | 2021-05-14 14:40:14 +0300 |
---|---|---|
committer | sashok724 | 2021-05-14 14:40:14 +0300 |
commit | 8bb51c67717b4158c46a292b51c99c3a1513b192 (patch) | |
tree | 52a663808c8cc2500fdf7b9501f21c92b74099bb /PKGBUILD | |
download | aur-8bb51c67717b4158c46a292b51c99c3a1513b192.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2a6c57aa4dad --- /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 +} |