blob: 675386595e95a731816852af15789265dcf30c0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
pkgname='enroot-git'
pkgver='3.0.1'
pkgrel='1'
pkgdesc='A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.'
url='https://github.com/NVIDIA/enroot'
arch=(x86_64)
license=(Apache)
makedepends=(git gcc make libtool)
depends=(jq parallel squashfs-tools)
optdepends=(fuse-overlayfs-git libnvidia-container-tools pigz squashfuse)
conflicts=(enroot)
provides=(enroot)
install='enroot.install'
source=("git+https://github.com/NVIDIA/enroot.git#branch=master")
sha256sums=(SKIP)
pkgver() {
cd enroot
# Remove leading "v"; add "r" before commit count; convert dashes to dots.
git describe --long --tags | sed 's/^v// ; s/\([^-]*-g\)/r\1/ ; s/-/./g'
}
build() {
cd 'enroot'
CPPFLAGS="-DALLOW_SPECULATION -DINHERIT_FDS" make -j "$(nproc)" prefix='' exec_prefix=/usr datarootdir=/usr/share
}
package() {
cd 'enroot'
DESTDIR="$pkgdir/" make install prefix='' exec_prefix=/usr datarootdir=/usr/share
mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
mv "${pkgdir}/usr/share/enroot/bash_completion" "${pkgdir}/usr/share/bash-completion/completions/enroot"
}
backup=(etc/enroot/enroot.conf)
|