blob: 2d707646a65349aa4dd42f4bd6cf8f2ce103f564 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Daniel Santana <daniel@santana.tech>
# Maintainer: Daniel Santana <daniel@santana.tech>
pkgname=proot
pkgver=5.2.0_alpha
_pkgver=${pkgver/_/-}
pkgrel=0
pkgdesc="User-space implementation of chroot, mount --bind, and binfmt_misc"
url="https://proot-me.github.io"
arch="aarch64 armhf armv7 x86 x86_64"
license="GPL-2-or-later"
makedepends="
bsd-compat-headers
libarchive-dev
linux-headers
py3-docutils
talloc-dev
talloc-static
uthash-dev
"
subpackages="care $pkgname-doc $pkgname-static"
source="https://github.com/proot-me/proot/archive/v$_pkgver/$pkgname-$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
options="!check" # FIXME: several tests are failing
prepare() {
default_prepare
cp -r src src-static
}
build() {
make -C src proot care GIT=false
make -C src-static proot GIT=false LDFLAGS="$LDFLAGS -static -ltalloc"
make -C doc proot/man.1 care/man.1
}
check() {
make -C test
}
package() {
install -Dm 0755 ./src/proot "$pkgdir"/usr/bin/proot
install -Dm 0644 ./doc/proot/man.1 "$pkgdir"/usr/share/man/man1/proot.1
install -Dm 0644 ./doc/care/man.1 "$pkgdir"/usr/share/man/man1/care.1
}
care() {
pkgdesc="Comprehensive Archiver for Reproducible Execution"
install -Dm 0755 "$builddir"/src/care "$subpkgdir"/usr/bin/care
}
static() {
pkgdesc="$pkgdesc (built as static binary)"
install -Dm 0755 "$builddir"/src-static/proot "$subpkgdir"/usr/bin/proot.static
}
sha512sums="13215070ca9decc5e0396a9e996536b7ea42746bae2197ab7cd06c516eac732d804f6378987cb68325388fea1f2a5a997cea0f70a630a31ace1c7c7526bd096c proot-5.2.0-alpha.tar.gz"
|